Deng XueFeng wrote: > each thread will PLAY a URL, and maybe exit if any network occurs, and > Release it's surfaces, then restart with new URL(has different sized video), > so the CreateSurface, tmp->Release, main->GetSubSurface, sub->Release maybe > occurs the same time. should lock here?
GetSubSurface() can be called by two threads without locking, unless you do Release() on the main surface. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev