[Live-devel] Infinit loop in DelayQue::synchronize on BasicTaskScheduler::createNew

Ross Finlayson finlayson at live555.com
Mon Nov 28 14:42:50 PST 2011


> I am trying to use a subclass of RTSPClient and it has a static variable for the scheduler and environment

You don't need to do this.  Each subclass of "Medium" (which includes "RTSPClient") has a member function
	envir()
which returns its "UsageEnvironment".  And "UsageEnvironment" has a member function
	taskScheduler()
which returns its "TaskScheduler".

So you shouldn't need to add any fields for these.

Note that - each time you create a "TaskScheduler"/"UsageEnvironment" pair - you first create the "TaskScheduler"; then you create a "UsageEnvironment" that uses it.  (Note the numerous examples in "testProgs".)

Therefore, when deleting these objects, you should do so in reverse order:
	- First call "reclaim()" on the "UsageEnvironment" object
	- Then "delete" the "TaskScheduler" object.
	(Yes, this is rather ugly and inconsistent...)

    Ross.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111128/6e581c1f/attachment.html>


More information about the live-devel mailing list