| 63 | } |
| 64 | |
| 65 | XnStatus 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 | |
| 84 | XnBool SampleDepth::IsGenerating() |
| 85 | { |
no test coverage detected