* DevNotes: Add entry cgf-000018.
* init.cc (dll_entry): Grab process lock before exiting to ensure that thread doesn't exit before parent if parent is exiting. * _cygtls.cc (_cygtls::call2): Revert previous 2012-12-21 change. * miscfuncs.cc (thread_wrapper): Ditto. * thread.cc (pthread::exit): Ditto. * sigproc.cc (exit_thread): Ditto. (wait_sig): Ditto. * sync.cc (muto::release): Ditto. * sync.h (muto::release): Ditto. * sigproc.h (__SIGTHREADEXIT): Delete enum. (exit_thread): Delete declaration.
This commit is contained in:
@@ -33,7 +33,7 @@ public:
|
||||
~muto ()
|
||||
#endif
|
||||
int acquire (DWORD ms = INFINITE) __attribute__ ((regparm (2))); /* Acquire the lock. */
|
||||
int release (_cygtls * = &_my_tls) __attribute__ ((regparm (2))); /* Release the lock. */
|
||||
int release () __attribute__ ((regparm (1))); /* Release the lock. */
|
||||
|
||||
bool acquired () __attribute__ ((regparm (1)));
|
||||
void upforgrabs () {tls = this;} // just set to an invalid address
|
||||
@@ -60,7 +60,6 @@ public:
|
||||
if (!skip_unlock)
|
||||
locker.release ();
|
||||
}
|
||||
static void force_release (_cygtls *tid) {locker.release (tid);}
|
||||
friend class dtable;
|
||||
friend class fhandler_fifo;
|
||||
};
|
||||
|
Reference in New Issue
Block a user