Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deactivate clock_gettime on SunOS, as it does not work for threads.
authorAugustin Degomme <adegomme@gmail.com>
Wed, 22 May 2019 07:45:47 +0000 (09:45 +0200)
committerAugustin Degomme <adegomme@gmail.com>
Wed, 22 May 2019 08:12:51 +0000 (10:12 +0200)
commit6cf83e2b8b91315daaf30dc22f610af68c6d672c
treed742d649dc62bb15ab331e87f79aac060ec55730
parentf70afd4be0405724df2ad02371e2b45a676592de
deactivate clock_gettime on SunOS, as it does not work for threads.
CLOCK_THREAD_CPUTIME_ID is declared, but is unimplemented, execution fails and we don't check it.
This can be checked by the absence of _POSIX_THREAD_CPUTIME in unistd.h
Sadly, deactivating posix_gettime only for thread timers is not practical in xbt, so just default to another for all timers.
src/xbt/xbt_os_time.c