public class EXTThreadLocalContext
extends java.lang.Object
This extension introduces the concept of a current thread-local context, with each thread able to have its own current context. The current context is what the al- functions work on, effectively allowing multiple threads to independently drive separate OpenAL playback contexts.
| Modifier and Type | Method and Description |
|---|---|
static long |
alcGetThreadContext()
Retrieves a handle to the thread-specific context of the calling thread.
|
static boolean |
alcSetThreadContext(long context)
Makes a context current with respect to OpenAL operation on the current thread.
|
public static boolean alcSetThreadContext(long context)
NULL or a valid context pointer. Using
NULL results in no thread-specific context being current in the calling thread, which is useful when shutting OpenAL down.context - the context to make currentpublic static long alcGetThreadContext()
NULL if no thread-specific context is set.Copyright LWJGL. All Rights Reserved. License terms.