]> git.mxchange.org Git - simgear.git/commit
Melchior FRANZ:
authorfredb <fredb>
Tue, 21 Feb 2006 12:59:31 +0000 (12:59 +0000)
committerfredb <fredb>
Tue, 21 Feb 2006 12:59:31 +0000 (12:59 +0000)
commita75b4af3744039072c7a03ef4ed6fcb536763937
tree5d67030aa2a341e46efc2c1287b5a96c640b33fb
parentb2a4cd488dfcfbf1d02fa41f2dfa5ad39aabb13a
Melchior FRANZ:

- don't unlock an already unlocked mutex (Someone wanted to be on
  the safe side with this, but the result is undefined and makes
  pthread_mutex_destroy fail. Reference: manpage for
  pthread_mutexattr_gettype/The Open Group[1]: "Attempting to
  unlock a mutex of this type which is not locked results in
  undefined behaviour.")

- re-enabled all subsystem destructors again (this has been disabled
  because fgfs hung on exit, due to the mutex destroy failure from
  above.)

Reference:
  http://www.opengroup.org/onlinepubs/007908799/xsh/pthread_mutexattr_gettype.html
simgear/structure/subsystem_mgr.cxx
simgear/threads/SGQueue.hxx