From 419294cddd7a437eb8d4bc5c0ffa6861d794d99b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 10 Sep 2011 07:18:29 -0700 Subject: Avoid locking the device when adding and removing contexts Also, don't keep track of the number of contexts per device --- OpenAL32/Include/alMain.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenAL32/Include/alMain.h') diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 7c042b55..ddc3857f 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -569,8 +569,7 @@ struct ALCdevice_struct ALfloat PendingClicks[MAXCHANNELS]; // Contexts created on this device - ALCcontext *ContextList; - ALuint NumContexts; + ALCcontext *volatile ContextList; BackendFuncs *Funcs; void *ExtraData; // For the backend's use @@ -633,7 +632,7 @@ struct ALCcontext_struct ALCdevice *Device; const ALCchar *ExtensionList; - ALCcontext *next; + ALCcontext *volatile next; }; void ALCcontext_IncRef(ALCcontext *context); -- cgit v1.2.3