Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented May 3, 2024

Use the new public Raw functions:

  • _PyTime_PerfCounterUnchecked() with PyTime_PerfCounterRaw()
  • _PyTime_TimeUnchecked() with PyTime_TimeRaw()
  • _PyTime_MonotonicUnchecked() with PyTime_MonotonicRaw()

Remove internal functions:

  • _PyTime_PerfCounterUnchecked()
  • _PyTime_TimeUnchecked()
  • _PyTime_MonotonicUnchecked()

@vstinner vstinner force-pushed the remove_time_unchecked branch from d927040 to 312b7d5 Compare May 3, 2024 15:42
@vstinner vstinner force-pushed the remove_time_unchecked branch 2 times, most recently from 6c82b37 to 68398ec Compare May 4, 2024 08:27
@vstinner vstinner marked this pull request as ready for review May 4, 2024 08:27
@vstinner
Copy link
Member Author

vstinner commented May 4, 2024

@colesbury: Would you mind to proofread the parking_lot.c changes?

Use the new public Raw functions:

* _PyTime_PerfCounterUnchecked() with PyTime_PerfCounterRaw()
* _PyTime_TimeUnchecked() with PyTime_TimeRaw()
* _PyTime_MonotonicUnchecked() with PyTime_MonotonicRaw()

Remove internal functions:

* _PyTime_PerfCounterUnchecked()
* _PyTime_TimeUnchecked()
* _PyTime_MonotonicUnchecked()
@vstinner vstinner force-pushed the remove_time_unchecked branch from 68398ec to 8888a1e Compare May 4, 2024 08:29
@colesbury
Copy link
Contributor

Look correct to me

@vstinner vstinner merged commit aa61f8b into python:main May 5, 2024
@vstinner vstinner deleted the remove_time_unchecked branch May 5, 2024 10:15
@vstinner
Copy link
Member Author

vstinner commented May 5, 2024

Merged, thanks for the review 👍

SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
Use the new public Raw functions:

* _PyTime_PerfCounterUnchecked() with PyTime_PerfCounterRaw()
* _PyTime_TimeUnchecked() with PyTime_TimeRaw()
* _PyTime_MonotonicUnchecked() with PyTime_MonotonicRaw()

Remove internal functions:

* _PyTime_PerfCounterUnchecked()
* _PyTime_TimeUnchecked()
* _PyTime_MonotonicUnchecked()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants