MCPcopy Create free account
hub / github.com/LabSound/LabSound / jackCloseStream

Function jackCloseStream

src/backends/RtAudio/RtAudio.cpp:2390–2398  ·  view source on GitHub ↗

This function will be called by a spawned thread when the Jack server signals that it is shutting down. It is necessary to handle it this way because the jackShutdown() function must return before the jack_deactivate() function (in closeStream()) will return.

Source from the content-addressed store, hash-verified

2388// it this way because the jackShutdown() function must return before
2389// the jack_deactivate() function (in closeStream()) will return.
2390static void * jackCloseStream(void * ptr)
2391{
2392 CallbackInfo * info = (CallbackInfo *) ptr;
2393 RtApiJack * object = (RtApiJack *) info->object;
2394
2395 object->closeStream();
2396
2397 pthread_exit(NULL);
2398}
2399static void jackShutdown(void * infoPointer)
2400{
2401 CallbackInfo * info = (CallbackInfo *) infoPointer;

Callers

nothing calls this directly

Calls 1

closeStreamMethod · 0.45

Tested by

no test coverage detected