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 | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Vivek