]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add error checking to mutexes and condition variables.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 10 Jan 2021 12:21:26 +0000 (13:21 +0100)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 10 Jan 2021 12:25:09 +0000 (13:25 +0100)
commit1b152d44acc2fb7992711a3cb2e8cd2322aecb30
tree030ccf1e21510df4320341dc74b9d86d22bd1ca4
parent5ec390b478ec20d11fab41065a4e90fb0ecd74fc
Add error checking to mutexes and condition variables.

After the discussions about PTHREAD_PROCESS_SHARED and after
observing that on Cygwin the program simply hangs because
this flag is not implemented there, the best way is to check
for errors and exit with a clear error message instead of
some mysterious hang.

libgfortran/ChangeLog:

* caf_shared/util.c (ERRCHECK): New macro.
(initialize_shared_mutex): Use it to check return codes.
(initialize_shared_condition): Likewise.
libgfortran/caf_shared/util.c