|
|
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.