This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
sched_* functions
- To: <cygwin-patches at cygwin dot com>
- Subject: sched_* functions
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- Date: Sun, 18 Mar 2001 14:39:08 +1100
Don't fall out of your chair chris, here's a second contribution...
again, probably not perfect right out of the gate, but it works quite
well.
Changelog:
18 Mar 2001 Robert Collins <rbtcollins@hotmail.com>
* cygwin/sched.cc: new file, exported wrappers for __sched*
* cygwin/schedule.cc: new file, implements __sched*
* cygwin/schedule.h: new file, prototypes for __sched*
* cygwin/include/sched.h: , new file, user land includes for sched*
* cygwin/Makefile.in: added sched.o and schedule.o
* cygwin/cygwin.din: added exports for sched*
* cygwin/external.cc: export the inital windows thread id.
* cygwin/fork.cc: record the inital thread id for created process's.
* cygwin/pinfo.cc: record the inital thread id for the first cygwin
process.
* cygwin/pinfo.h: allocate space to store the main thread Id for
process's.
* cygwin/include/sys/cygwin.h: allocate space for exporting the main
thread id for process's.
* w32api/include/winbase.h: Added prototype for OpenThread.
* w32api/lib/kernel32.def: Added export for OpenThread.
I've attached the new files
* cygwin/sched.cc (note the CC)
* cygwin/schedule.cc
* cygwin/schedule.h
* cygwin/include/sched.h
rather than diffs, cause cvs -z3 diff -upN refused to create diffs. I
hope that's not a problem.
Also attached is my basic testrig (sched.c (single c) ).
Rob
sched.patch
schedule.h
schedule.cc
sched.cc
sched.h
sched.c