#include <kern/zalloc.h>
#include <kern/sched_prim.h>
#include <kern/processor.h>
-#include <kern/wait_queue.h>
//#include <kern/mach_param.h>
#include <mach/mach_vm.h>
#include <mach/mach_param.h>
pthread_list_lock();
res = ksyn_wq_hash_lookup(uaddr, current_proc(), flags, &kwq, &hashptr, &object, &offset);
if (res != 0) {
+ pthread_list_unlock();
break;
}
if (kwq == NULL && nkwq == NULL) {
kwq->kw_dropcount++;
}
}
+ pthread_list_unlock();
break;
}
- pthread_list_unlock();
if (kwqp != NULL) {
*kwqp = kwq;
}