* sigproc.h (sigthread): Eliminate locking for now since per thread signalling
is not available. * dcrt0.cc (sigthread::init): Ditto. (dll_crt0_1): Move set_process_privileges call (temporarily?) to pinfo_init. (pinfo_init): Only call set_process_privileges when allow_ntsec.
This commit is contained in:
@@ -38,7 +38,7 @@ struct sigthread
|
||||
{
|
||||
DWORD id;
|
||||
DWORD frame;
|
||||
muto *lock;
|
||||
muto *lock; // FIXME: Use for multi-thread signalling someday
|
||||
void init (const char *s);
|
||||
};
|
||||
|
||||
@@ -50,10 +50,8 @@ private:
|
||||
public:
|
||||
void set (sigthread &t, DWORD ebp)
|
||||
{
|
||||
t.lock->acquire ();
|
||||
st = &t;
|
||||
t.frame = ebp;
|
||||
t.lock->release ();
|
||||
}
|
||||
|
||||
sigframe () {st = NULL;}
|
||||
@@ -68,9 +66,7 @@ public:
|
||||
{
|
||||
if (st)
|
||||
{
|
||||
st->lock->acquire ();
|
||||
st->frame = 0;
|
||||
st->lock->release ();
|
||||
st = NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user