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

Function ossCallbackHandler

src/backends/RtAudio/RtAudio.cpp:10917–10937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10915}
10916
10917static void * ossCallbackHandler(void * ptr)
10918{
10919 CallbackInfo * info = (CallbackInfo *) ptr;
10920 RtApiOss * object = (RtApiOss *) info->object;
10921 bool * isRunning = &info->isRunning;
10922
10923#ifdef SCHED_RR // Undefined with some OSes (e.g. NetBSD 1.6.x with GNU Pthread)
10924 if (info->doRealtime)
10925 {
10926 std::cerr << "RtAudio oss: " << (sched_getscheduler(0) == SCHED_RR ? "" : "_NOT_ ") << "running realtime scheduling" << std::endl;
10927 }
10928#endif
10929
10930 while (*isRunning == true)
10931 {
10932 pthread_testcancel();
10933 object->callbackEvent();
10934 }
10935
10936 pthread_exit(NULL);
10937}
10938
10939//******************** End of __LINUX_OSS__ *********************//
10940#endif

Callers

nothing calls this directly

Calls 1

callbackEventMethod · 0.80

Tested by

no test coverage detected