Robert Collins f9229ef74b Tue Sep 11 18:15:00 2001 Robert Collins <rbtcollins@hotmail.com>
* dcrt0.cc (cygwin_finished_initializing): Copy _mtinterf on fork;
        * fork.cc (fork_child): fixup thread-related structures after fork;
        * thread.cc (MTinterface::Init): Initialise the new mutex, condition and semaphore lists.
        (MTinterface::fixup_after_fork): Iterate through each list and fixup the objects.
        (pthread_cond::pthread_cond): Add this to the condition list.
        (pthread_cond::~pthread_cond): Remove this from the condition list.
        (pthread_cond::fixup_after_fork): Recreate as best we can the pre-fork state.
        (pthread_mutex::pthread_mutex): Add this to the mutex list.
        (pthread_mutex::~pthread_mutex): Remove this from the mutex list.
        (pthread_mutex::fixup_after_fork): Recreate as best we can the pre-fork state.
        (semaphore::semaphore): Store the initial value, and add this to the semaphore list.
        (semaphore::~semaphore): Remove this from the semaphore list.
        (semaphore::Post): Increment the current semaphore value.
        (semaphore::TryWait): Decrement the current semaphore value.
        (semaphore::Wait): Ditto.
        (semaphote::fixup_after_fork): Recreate the pre-fork state as best we can.
        * thread.h (pthread_mutex): New members to allow fixup_after_fork.
        (pthread_cond): Ditto.
        (semaphore): Ditto.
        (MTinterface): New list heads for tracking conds and semaphores.
2001-09-11 08:15:39 +00:00
..
2000-10-28 05:41:44 +00:00
2000-02-17 19:38:33 +00:00
2000-02-21 03:18:37 +00:00
2001-09-07 01:13:47 +00:00
2000-02-17 19:38:33 +00:00
2000-11-19 04:58:18 +00:00
2001-03-11 16:46:28 +00:00
2000-02-17 19:38:33 +00:00
2001-09-05 20:12:38 +00:00
2001-09-03 02:13:05 +00:00
2001-06-01 01:45:53 +00:00
2000-02-17 19:38:33 +00:00
2000-08-18 19:51:02 +00:00
2000-09-03 04:16:35 +00:00
2000-02-17 19:38:33 +00:00
2000-02-17 19:38:33 +00:00
2001-03-07 17:45:03 +00:00
2000-02-17 19:38:33 +00:00
2000-02-17 19:38:31 +00:00