MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / StartGenerating

Method StartGenerating

Samples/NiSampleModule/SampleDepth.cpp:65–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65XnStatus SampleDepth::StartGenerating()
66{
67 XnStatus nRetVal = XN_STATUS_OK;
68
69 m_bGenerating = TRUE;
70
71 // start scheduler thread
72 nRetVal = xnOSCreateThread(SchedulerThread, this, &m_hScheduler);
73 if (nRetVal != XN_STATUS_OK)
74 {
75 m_bGenerating = FALSE;
76 return (nRetVal);
77 }
78
79 m_generatingEvent.Raise();
80
81 return (XN_STATUS_OK);
82}
83
84XnBool SampleDepth::IsGenerating()
85{

Callers 2

MainWindowMethod · 0.45
toggleStreamFunction · 0.45

Calls 2

xnOSCreateThreadFunction · 0.50
RaiseMethod · 0.45

Tested by

no test coverage detected