io/m_io_hid_android.c
/* Expects the io layer to be locked already! */
Expects the io layer to be locked already!
Expects the io layer to be locked already!
static void M_io_hid_signal_shutdown(M_io_handle_t *handle)
{
	if (!(handle->status & M_IO_HID_STATUS_SYSUP))
		return;
	handle->status &= ~(M_IO_HID_STATUS_SYSUP);
	if (handle->status & M_IO_HID_STATUS_WRITERUP) {
		M_thread_mutex_lock(handle->write_lock);
		M_thread_cond_signal(handle->write_cond);
		M_thread_mutex_unlock(handle->write_lock);
	}
}
static void M_io_hid_signal_shutdown ( M_io_handle_t * handle ) { if ( ! ( handle -> status & M_IO_HID_STATUS_SYSUP ) ) return ; handle -> status &= ~ ( M_IO_HID_STATUS_SYSUP ) ; if ( handle -> status & M_IO_HID_STATUS_WRITERUP ) { M_thread_mutex_lock ( handle -> write_lock ) ; M_thread_cond_signal ( handle -> write_cond ) ; M_thread_mutex_unlock ( handle -> write_lock ) ; } }
Expects the io layer to be locked already!
Expects the io layer to be locked already!
/* Tell our threads they can stop running. */ /* And wake up the writer thread. */