void gaelco_serial_device::device_stop() { { std::lock_guard<std::mutex> guard(m_mutex); buf_reset(m_out_ptr); buf_reset(m_in_ptr); } osd_sharedmem_free(m_os_shmem); }
void gaelco_serial_device::device_stop() { shmem_lock(m_shmem); buf_reset(m_out_ptr); buf_reset(m_in_ptr); shmem_unlock(m_shmem); osd_sharedmem_free(m_os_shmem); }
static DEVICE_STOP( gaelco_serial ) { gaelco_serial_state *state = get_token(device); shmem_lock(state->m_shmem); buf_reset(state->m_out_ptr); buf_reset(state->m_in_ptr); shmem_unlock(state->m_shmem); osd_sharedmem_free(state->m_os_shmem); }