We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ca944 commit ac2aba0Copy full SHA for ac2aba0
src/common/thread.h
@@ -65,8 +65,8 @@
65
struct timespec ts;
66
if (clock_gettime(CLOCK_REALTIME, &ts) == 0)
67
{
68
- ts.tv_sec += ts.tv_sec / 1000;
69
- ts.tv_nsec += (ts.tv_nsec % 1000) * 1000000;
+ ts.tv_sec += timeout / 1000;
+ ts.tv_nsec += (timeout % 1000) * 1000000;
70
if (pthread_timedjoin_np(thread, NULL, &ts) != 0)
71
72
pthread_kill(thread, SIGTERM);
0 commit comments