Skip to content

threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available #75450

Description

@winfr34k
mannequin
BPO 31267
Nosy @vstinner, @winfr34k, @anikey-m
Superseder
  • bpo-12822: threading.Condition.wait(timeout) should use a monotonic clock: use pthread_condattr_setclock(CLOCK_MONOTONIC)
  • Files
  • timer_testcase.py
  • test_monotonic.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-01-17.10:04:50.532>
    created_at = <Date 2017-08-23.20:47:35.939>
    labels = ['type-bug', 'library']
    title = 'threading.Timer object is affected by changes to system time: Python locks should use a monotonic clock if available'
    updated_at = <Date 2021-10-01.08:49:02.732>
    user = 'https://github.com/winfr34k'

    bugs.python.org fields:

    activity = <Date 2021-10-01.08:49:02.732>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-01-17.10:04:50.532>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2017-08-23.20:47:35.939>
    creator = 'winfreak'
    dependencies = []
    files = ['47096', '47097']
    hgrepos = []
    issue_num = 31267
    keywords = []
    message_count = 8.0
    messages = ['300765', '302249', '302257', '302259', '303893', '303934', '333798', '333840']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'winfreak', 'Matthias Schmidt', 'anikey']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '12822'
    type = 'behavior'
    url = 'https://bugs.python.org/issue31267'
    versions = ['Python 3.5']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions