main/duktape_event.c
static void postEvent(esp32_duktape_event_t *pEvent, bool isISR) {
#if defined(ESP_PLATFORM)
	if (isISR) {
		xQueueSendToBackFromISR(esp32_duktape_event_queue, pEvent, NULL);
	} else {
		xQueueSendToBack(esp32_duktape_event_queue, pEvent, portMAX_DELAY);
	}
#else /* ESP_PLATFORM */
	assert(0);
#endif  /* ESP_PLATFORM */
}
/**
 * Post the event onto the queue for handling when idle.
 */
Post the event onto the queue for handling when idle.
Post the event onto the queue for handling when idle .
static void postEvent(esp32_duktape_event_t *pEvent, bool isISR) {
#if defined(ESP_PLATFORM)
	if (isISR) {
		xQueueSendToBackFromISR(esp32_duktape_event_queue, pEvent, NULL);
	} else {
		xQueueSendToBack(esp32_duktape_event_queue, pEvent, portMAX_DELAY);
	}
#else 
	assert(0);
#endif  
}
static void postEvent ( esp32_duktape_event_t * pEvent , bool isISR ) { #if defined ( ESP_PLATFORM ) if ( isISR ) { xQueueSendToBackFromISR ( esp32_duktape_event_queue , pEvent , NULL ) ; } else { xQueueSendToBack ( esp32_duktape_event_queue , pEvent , portMAX_DELAY ) ; } #else assert ( 0 ) ; #endif }
Post the event onto the queue for handling when idle.
Post the event onto the queue for handling when idle .
/* ESP_PLATFORM */ /* ESP_PLATFORM */