Skip to content
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