Searched refs:portState (Results 1 – 1 of 1) sorted by relevance
284 int portState = MIDI_PORT_STATE_OPEN_IDLE; in AMIDI_closePort() local285 while (!port->state.compare_exchange_weak(portState, MIDI_PORT_STATE_CLOSED)) { in AMIDI_closePort()286 if (portState == MIDI_PORT_STATE_CLOSED) { in AMIDI_closePort()322 int portState = MIDI_PORT_STATE_OPEN_IDLE; in receive() local324 if (!mPort->state.compare_exchange_strong(portState, MIDI_PORT_STATE_OPEN_ACTIVE)) { in receive()