[Openal-devel] Thread-local contexts
Chris Robinson
chris.kcat at gmail.com
Wed Sep 9 11:19:29 PDT 2009
On Wednesday 09 September 2009 8:26:02 am Jason Daly wrote:
> Chris Robinson wrote:
> > This allows alcMakeContextCurrent to behave the same for existing code,
> > while new code can affect just the thread's current context, within the
> > same app.
>
> Makes a lot of sense to me. Will this bring up any new concurrency issues?
It shouldn't. OpenAL is still thread safe, so two threads calling AL functions
shouldn't trip over each other regardless if they're using the same context or
not.
My only question is if two threads can have the same context set locally.
OpenGL doesn't allow the same context to be set current on multiple threads at
once, but OpenAL is already designed to work with one context between threads,
so I'm not sure if the restriction is necessary.
More information about the Openal-devel
mailing list