Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-10-19 04:53:25 +0400
committerChristopher Faylor <me@cgf.cx>2000-10-19 04:53:25 +0400
commit4b70969a0838ca2a1fb11daf317c11318469f513 (patch)
treedf84cb6a0bf0cc3d6c3bd02179897f093f0d7090 /winsup/cygwin/sigproc.h
parent6e8f36bc43a54e6d6d21528acfe6f92d07781a9d (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/sigproc.h')
-rw-r--r--winsup/cygwin/sigproc.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h
index 1a79cffc5..2ee39b013 100644
--- a/winsup/cygwin/sigproc.h
+++ b/winsup/cygwin/sigproc.h
@@ -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;
}
}