DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Notes and examples for multithreaded TTY drivers

Modifying the proc(D2oddi) routine

The only change necessary is to protect the proc(D2oddi) routine using the tc_ctlock(D3oddi) function:

   ...
   s = tc_ctlock(tp);
   ...
   ...
   tc_ctunlock(tp,s);
   ...
tc_ctlock is used to acquire a conditional lock; that is, a lock is only acquired if one does not already exist.

© 2005 The SCO Group, Inc. All rights reserved.