Next: 3.10.22 nxo_name Up: 3.10 Classes Previous: 3.10.20 nxo_mark Contents Index
Subsections

- 3.10.21.1 API

##
3.10.21 nxo_mutex

The nxo_mutex class is a subclass of the nxo class.

### 3.10.21.1 API

void nxo_mutex_new(cw_nxo_t *a_nxo, cw_nx_t *a_nx):

  Input(s):
    a_nxo:
      Pointer to a mutex nxo.
    a_nx:
      Pointer to an nx.
  Output(s):
    None.
  Exception(s):
    CW_ONYXX_OOM.
  Description:
    Constructor.

void nxo_mutex_lock(cw_nxo_t *a_nxo):

  Input(s):
    a_nxo:
      Pointer to a mutex nxo.
  Output(s):
    None.
  Exception(s):
    None.
  Description:
    Lock a_nxo.

cw_bool_t nxo_mutex_trylock(cw_nxo_t *a_nxo):

  Input(s):
    a_nxo:
      Pointer to a mutex nxo.
  Output(s):
    retval:
      FALSE:
        Success.
      TRUE:
        Failure.
  Exception(s):
    None.
  Description:
    Try to lock a_nxo, but return immediately with an error if unable to do so.

void nxo_mutex_unlock(cw_nxo_t *a_nxo):

  Input(s):
    a_nxo:
      Pointer to a mutex nxo.
  Output(s):
    None.
  Exception(s):
    None.
  Description:
    Unlock a_nxo.

Next: 3.10.22 nxo_name Up: 3.10 Classes Previous: 3.10.20 nxo_mark Contents Index