| 614 | extern void fxSampleInstrumentation(xsMachine * the, xsIntegerValue count, xsIntegerValue* values); |
| 615 | |
| 616 | void workerSampleInstrumentation(modTimer timer, void *refcon, int refconSize) |
| 617 | { |
| 618 | xsMachine *the = *(xsMachine **)refcon; |
| 619 | #ifdef INC_FREERTOS_H |
| 620 | extern SemaphoreHandle_t gInstrumentMutex; |
| 621 | xSemaphoreTake(gInstrumentMutex, portMAX_DELAY); |
| 622 | #elif __ZEPHYR__ |
| 623 | extern struct k_mutex gInstrumentMutex; |
| 624 | k_mutex_lock(&gInstrumentMutex, K_FOREVER); |
| 625 | #endif |
| 626 | |
| 627 | fxSampleInstrumentation(the, 0, NULL); |
| 628 | modInstrumentMachineReset(the); |
| 629 | |
| 630 | #ifdef INC_FREERTOS_H |
| 631 | xSemaphoreGive(gInstrumentMutex); |
| 632 | #elif __ZEPHYR__ |
| 633 | k_mutex_unlock(&gInstrumentMutex); |
| 634 | #endif |
| 635 | } |
| 636 | #endif |
nothing calls this directly
no test coverage detected