libgpac
Documentation of the core library of GPAC
|
FilterSession management. More...
Data Structures | |
interface | _FilterSession |
See GF_FilterSession
The default behaviour is to run the session in blocking mode, which will prevent executing anything until the end of a session. While this may be OK for workers or simple applications, it is obviously problematic if you have async tasks to be performed by your node app.
An example approach for by-passing this is to create the session in non-blocking mode and use a recursive promise to run the session:
The filter session supports multithreaded mode, using e.g.
However it is currently not capable of running asynchronous callbacks into Node.
The consequences are:
For better multithreaded usage, it is therefore not recommended to use packets with shared JS data.
By default the filter session will run with implicit linking.