Skip to content

threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC) #85876

Closed
@wocket

Description

@wocket
BPO 41710
Nosy @vstinner, @methane, @miss-islington, @mikecrowe
PRs
  • bpo-41710: Add _PyTime_AsTimespec_clamp() #28629
  • bpo-41710: Add pytime_add() and pytime_mul() #28642
  • bpo-41710: PyThread_acquire_lock_timed() clamps the timout #28643
  • bpo-41710: Fix building pytime.c on Windows #28644
  • bpo-41710: Document _PyTime_t API in pytime.h #28647
  • bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() #28662
  • [3.10] bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() #28671
  • [3.10] bpo-41710: Fix PY_TIMEOUT_MAX value on Windows #28672
  • bpo-41710: Fix PY_TIMEOUT_MAX on Windows #28673
  • bpo-41710: Add private _PyDeadline_Get() function #28674
  • bpo-41710: gc_collect_main() uses _PyTime_GetPerfCounter() #28676
  • [3.9] bpo-41710: PyThread_acquire_lock_timed() uses sem_clockwait() (GH-28671) #28683
  • bpo-41710: Fix What's New Entry credit #28962
  • Files
  • time_test.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 2021-10-01.16:52:29.583>
    created_at = <Date 2020-09-04.08:34:54.835>
    labels = ['interpreter-core', 'type-bug', '3.9', '3.10', '3.11']
    title = 'threading.Lock.acquire(timeout) should use sem_clockwait(CLOCK_MONOTONIC)'
    updated_at = <Date 2021-12-06.13:27:11.081>
    user = 'https://bugs.python.org/wocket'

    bugs.python.org fields:

    activity = <Date 2021-12-06.13:27:11.081>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-10-01.16:52:29.583>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2020-09-04.08:34:54.835>
    creator = 'wocket'
    dependencies = []
    files = ['49440']
    hgrepos = []
    issue_num = 41710
    keywords = ['patch']
    message_count = 22.0
    messages = ['376338', '376340', '376394', '399405', '402925', '402926', '402931', '402939', '402942', '402987', '402995', '402997', '403001', '403003', '403009', '403011', '403012', '403021', '403022', '403023', '403962', '407802']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'methane', 'miss-islington', 'wocket', 'mikecrowe']
    pr_nums = ['28629', '28642', '28643', '28644', '28647', '28662', '28671', '28672', '28673', '28674', '28676', '28683', '28962']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41710'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions