Class EXTThreadLocalContext

java.lang.Object
org.lwjgl.openal.EXTThreadLocalContext

public class EXTThreadLocalContext extends Object
Native bindings to the EXT_thread_local_context extension.

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.

  • Method Details

    • alcSetThreadContext

      public static boolean alcSetThreadContext(long context)
      Makes a context current with respect to OpenAL operation on the current thread. The context parameter can be 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.
      Parameters:
      context - the context to make current
    • alcGetThreadContext

      public static long alcGetThreadContext()
      Retrieves a handle to the thread-specific context of the calling thread. This function will return NULL if no thread-specific context is set.