* dcrt0.cc (dll_crt0_1): Initialize mainthread stuff here before anything needs
it. * sigproc.cc (sigproc_init): Move mainthread initialization out of here. * sigproc.h (sigthread): Add init() method. (sigframe): Don't try to initialize muto. * sync.cc: Undef WaitForSingleObject to avoid recursion.
This commit is contained in:
@@ -23,6 +23,8 @@ details. */
|
||||
|
||||
muto NO_COPY muto_start;
|
||||
|
||||
#undef WaitForSingleObject
|
||||
|
||||
/* Constructor */
|
||||
muto::muto (int inh, const char *s) : sync (0), visits(0), waiters(-1), tid (0), next (NULL)
|
||||
{
|
||||
|
Reference in New Issue
Block a user