29 lines
741 B
C
29 lines
741 B
C
/****************************************************************
|
|
* *
|
|
* Copyright 2001 Sanchez Computer Associates, Inc. *
|
|
* *
|
|
* This source code contains the intellectual property *
|
|
* of its copyright holder(s), and is made available *
|
|
* under a license. If you do not know the terms of *
|
|
* the license, please stop and do not read further. *
|
|
* *
|
|
****************************************************************/
|
|
|
|
#include "mdef.h"
|
|
#include "cmidef.h"
|
|
|
|
struct CLB *cmj_getdeferred(struct NTD *tsk)
|
|
{
|
|
struct CLB *p;
|
|
que_ent_ptr_t qp;
|
|
|
|
for (qp = RELQUE2PTR(tsk->cqh.fl) ; qp != &tsk->cqh ;
|
|
qp = RELQUE2PTR(p->cqe.fl))
|
|
{
|
|
p = QUEENT2CLB(qp, cqe);
|
|
if (p->deferred_event)
|
|
return p;
|
|
}
|
|
return NULL;
|
|
}
|