frxThread questions
frxThread questions
- Subject: frxThread questions
- From: "Vivek" <email@hidden>
- Date: Tue, 22 Apr 2003 18:47:41 -0700
Hi. I'm looking at IOSerialBSDClient, and there's some code that I can't
figure out. Inside IOSerialBSDClient::txFunc, there are lines as follows:
// on entry
ftxThread = IOThreadSelf();
ftxThreadLaunched = true;
wakeup((caddr_t) &ftxThread); // wakeup the thread launcher
...
//on exit
ftxThread = NULL;
ftxThreadLaunched = false;
wakeup((caddr_t) &ftxThread); // wakeup the thread killer
ftxThread and ftxThreadLaunched are members of IOSerialBSDClient. I can't
seem to find a likely candidate for wakeup() in Kernel.framework or
/usr/include, and it seems like the exit code, with its null-pointer
argument, may have some pretty bad results.
Can somebody explain what the intent is of this sequence?
Thanks,
Vivek
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.