Home
last modified time | relevance | path

Searched refs:portState (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/media/native/midi/
Damidi.cpp276 int portState = MIDI_PORT_STATE_OPEN_IDLE; in AMIDI_closePort() local
277 while (!port->state.compare_exchange_weak(portState, MIDI_PORT_STATE_CLOSED)) { in AMIDI_closePort()
278 if (portState == MIDI_PORT_STATE_CLOSED) { in AMIDI_closePort()
314 int portState = MIDI_PORT_STATE_OPEN_IDLE; in receive() local
316 if (!mPort->state.compare_exchange_strong(portState, MIDI_PORT_STATE_OPEN_ACTIVE)) { in receive()