* sched.cc: New file. Implement sched*.

* include/sched.h: New file.  User land includes for sched*.
* Makefile.in: Add sched.o
* cygwin.din: Add exports for sched*.
This commit is contained in:
Christopher Faylor
2001-03-21 02:17:58 +00:00
parent a1299ba54b
commit 9a08b2c02e
7 changed files with 1019 additions and 957 deletions

View File

@@ -116,13 +116,13 @@ public:
return thread2signal ? thread2signal->win32_obj_id : hMainThread;
}
inline void setthread2signal (void *thr) {thread2signal = (ThreadItem *) thr;}
inline void setthread2signal (void *thr) {thread2signal = (pthread *) thr;}
private:
struct sigaction sigs[NSIG];
sigset_t sig_mask; /* one set for everything to ignore. */
LONG _sigtodo[NSIG + __SIGOFFSET];
ThreadItem *thread2signal; // NULL means means thread any other means a pthread
pthread *thread2signal; // NULL means means thread any other means a pthread
};
class pinfo