Workaround 'obsolescent usleep called' cppcheck warning (POSIX)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 7 Mar 2017 16:03:00 +0000 (19:03 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 7 Mar 2017 16:03:00 +0000 (19:03 +0300)
commitad0bcf317b7661807696e15c0e0b43581b18702b
tree0f1d617d1cd04b2786ef9c9351a4188b919bd552
parent18acb30bf2ba595f3d6a3187d2aea8d8892eb451
Workaround 'obsolescent usleep called' cppcheck warning (POSIX)

* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL]: Include time.h.
* pthread_stop_world.c [!GC_OPENBSD_UTHREADS && !NACL] (GC_stop_world):
Use nanosleep() instead of usleep() if CPPCHECK.
pthread_stop_world.c