Q: I'm going through the APIs provided by CLIB, is there any way of knowing which APIs need CLIB context to function properly? I read the section about context in the SDK CD online manuals and that section indicates that some of the CLIB APIs may not need CLIB context. I didn't see anything in the description of the APIs which indicated whether CLIB context was needed or not.
A: You should assume that only threads with CLIB context can make CLIB function calls. Obviously not all CLIB functions require CLIB context. However if you wish your NLMs to maintain compatibility with future versions of CLIB, you must implement this assumption. The only exception to this rule is SetThreadGroupID() (and perhaps SetNLMID()) used to establish a CLIB context for an OS thread.
| iabj6821.exe | 19.0 K | 2005-04-06 |
© 2009 Novell, Inc. All Rights Reserved.