* Modified for MP, 1996 by Tuyen Nguyen
* Modified, April 9, 1997 by Tuyen Nguyen for MacOSX.
*/
-extern atlock_t adspgen_lock;
struct qlink {
void *match;
ProcPtr compare_fnx;
{
- int s;
CCBPtr queue_item = qhead;
- ATDISABLE(s, adspgen_lock);
while (queue_item) {
if ((*compare_fnx)(queue_item,match))
break;
queue_item = queue_item->ccbLink;
}
- ATENABLE(s, adspgen_lock);
return (queue_item);
}