Prevent race condition in thread:receive (bug #131)

This commit is contained in:
Bart van Strien
2010-12-31 00:44:32 +01:00
parent 54cfb3738f
commit cfeb01db42
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -253,6 +253,8 @@ namespace sdl
{
lock();
ThreadVariant *v = comm->getValue(name);
if (v)
v->retain();
unlock();
return v;
}