8000 gh-74953: _PyThread_cond_after() uses _PyTime_t by vstinner · Pull Request #94056 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-74953: _PyThread_cond_after() uses _PyTime_t #94056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove MICROSECONDS_TO_TIMESPEC()
  • Loading branch information
vstinner committed Jun 21, 2022
commit cc4a72776dd78b90a9bb1f750cfdfd88fa0dcbe8
13 changes: 0 additions & 13 deletions Python/thread_pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,6 @@
#endif


#define MICROSECONDS_TO_TIMESPEC(microseconds, ts) \
do { \
struct timeval tv; \
gettimeofday(&tv, NULL); \
tv.tv_usec += microseconds % 1000000; \
tv.tv_sec += microseconds / 1000000; \
tv.tv_sec += tv.tv_usec / 1000000; \
tv.tv_usec %= 1000000; \
ts.tv_sec = tv.tv_sec; \
ts.tv_nsec = tv.tv_usec * 1000; \
} while(0)


/*
* pthread_cond support
*/
Expand Down
0