| 2397 | pthread_exit(NULL); |
| 2398 | } |
| 2399 | static void jackShutdown(void * infoPointer) |
| 2400 | { |
| 2401 | CallbackInfo * info = (CallbackInfo *) infoPointer; |
| 2402 | RtApiJack * object = (RtApiJack *) info->object; |
| 2403 | |
| 2404 | // Check current stream state. If stopped, then we'll assume this |
| 2405 | // was called as a result of a call to RtApiJack::stopStream (the |
| 2406 | // deactivation of a client handle causes this function to be called). |
| 2407 | // If not, we'll assume the Jack server is shutting down or some |
| 2408 | // other problem occurred and we should close the stream. |
| 2409 | if (object->isStreamRunning() == false) return; |
| 2410 | |
| 2411 | ThreadHandle threadId; |
| 2412 | pthread_create(&threadId, NULL, jackCloseStream, info); |
| 2413 | std::cerr << "\nRtApiJack: the Jack server is shutting down this client ... stream stopped and closed!!\n" |
| 2414 | << std::endl; |
| 2415 | } |
| 2416 | |
| 2417 | static int jackXrun(void * infoPointer) |
| 2418 | { |
nothing calls this directly
no test coverage detected