Re: [Live-devel] Question about Recursive TaskScheduler::doEventLoop Call

2021-01-14 Thread Ross Finlayson
> On Jan 12, 2021, at 7:39 PM, Ross Finlayson wrote: > > Because your use case seems reasonable, I think the best solution is for us > to update the code so that “lookupServerMediaSession()” is an asynchronous > operation (taking a ‘callback’ parameter that will get called when the the > loo

Re: [Live-devel] Question about Recursive TaskScheduler::doEventLoop Call

2021-01-12 Thread Ross Finlayson
> And now I still have a possible option: implementing a event-pool > "TaskScheduler". But I worry whether this is feasible, since the whole > library is designed basing on event-driven with one thread. No, this won’t work; LIVE555 application code must be single-threaded. Because your use case

Re: [Live-devel] Question about Recursive TaskScheduler::doEventLoop Call

2021-01-11 Thread Mit Shan
Note that "GenericMediaServer::lookupServerMediaSession” is part of the library code, and thus is not meant to be modified. Instead, you should subclass “RTSPServer”, and reimplement the virtual function “lookupServerMediaSession” in your subclass. (This is what we did for the “DynamicRTSPSer

Re: [Live-devel] Question about Recursive TaskScheduler::doEventLoop Call

2021-01-11 Thread Ross Finlayson
> On Jan 11, 2021, at 5:56 PM, Mit Shan wrote: > > I want to achieve the following function in live555 RTSP server: > > (a). Block for some time in the method > "GenericMediaServer::lookupServerMediaSession" Note that "GenericMediaServer::lookupServerMediaSession” is part of the library cod