From the samples on the Novell's website like this one:
void NLM_SignalHandler(int sig)
{
switch(sig)
{
case SIGTERM:
while(NLM_threadCnt != 0)
ThreadSwitchWithDelay();
break;
}
return;
}
I understand that it is OK to call ThreadSwitchWithDelay
from your SIGTERM handler although it is executed by an OS thread
which may or may not have a full CLIB context.
I have two questions:
1. Is ThreadSwitchWithDelay() among the functions which are supposed to
need a full CLIB context?
2. Is it OK to call ThreadSwitchWithDelay in a callback registered with
NWAddFSMonitorHook before giving the calling thread a CLIB context using
SetThreadGroupID in case the thread regestering the hook had its
ThreadContextSpecifier set to NO_CONTEXT?
TIA
Best regards
Krasimir
>>> On 6/30/2006 at 10:28 AM, in message
<uicpg.29$6c7...@prv-forum2.provo.novell.com>,
Krasimir