[Live-devel] NoReuse::NoReuse static variable and multithreading

Ross Finlayson finlayson at live555.com
Tue Dec 13 05:36:24 PST 2011


> I read from the mailing list that is not recommended to use live555 in a multithread way, but is it acceptable to run several live555 loop in different threads ?

I.e,, provided that each thread uses its own "TaskScheduler" and "UsageEnvironment", yes.


> In such a case the static in NoReuse is annoying because could be set/reset by a concurrent thread.
>  
> To tackle this we implement a workaround introducing this information in the UsageEnvironment.
>  
> What's your feeling ?

You're correct.  It should be moved the the "UsageEnvironment"s "groupsockPriv" structure.

This will be fixed in the next release of the software.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111213/5189397e/attachment.html>


More information about the live-devel mailing list