Novell Home

TID100734 (IABJ6821) - CLIB function's need for CLIB context

From Developer Community

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

iabj6821.exe19.0 K2005-04-06

--Benjamin Fjeldsted

Novell® Making IT Work As One

© 2009 Novell, Inc. All Rights Reserved.