Skip to content

Use the monotonic clock for thread conditions on POSIX platforms #67616

@vstinner

Description

@vstinner
BPO 23428
Nosy @vstinner, @stratakis, @pablogsal, @anikey-m
PRs
  • bpo-32243: Use monotonic clock for thread timeouts; more flexibility for very small switch intervals #4964
  • Superseder
  • bpo-12822: threading.Condition.wait(timeout) should use a monotonic clock: use pthread_condattr_setclock(CLOCK_MONOTONIC)
  • Files
  • cond_timedwait_monotonic.patch
  • 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-02-20.01:01:03.341>
    created_at = <Date 2015-02-09.21:34:27.880>
    labels = ['interpreter-core', '3.8']
    title = 'Use the monotonic clock for thread conditions on POSIX platforms'
    updated_at = <Date 2021-10-01.08:48:32.784>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2021-10-01.08:48:32.784>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-02-20.01:01:03.341>
    closer = 'methane'
    components = ['Interpreter Core']
    creation = <Date 2015-02-09.21:34:27.880>
    creator = 'vstinner'
    dependencies = []
    files = ['38069']
    hgrepos = []
    issue_num = 23428
    keywords = ['patch']
    message_count = 12.0
    messages = ['235637', '235639', '235640', '236156', '273565', '333841', '333844', '333845', '333846', '333851', '336060', '376341']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'neologix', 'cstratak', 'pablogsal', 'anikey']
    pr_nums = ['4964']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '12822'
    type = None
    url = 'https://bugs.python.org/issue23428'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions