10.4 Thread synchronisation
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Multithreaded applications
        • Thread synchronisation
          • mutex_create/1
          • mutex_create/2
          • mutex_destroy/1
          • with_mutex/2
          • mutex_lock/1
          • mutex_trylock/1
          • mutex_unlock/1
          • mutex_unlock_all/0
          • mutex_property/2
    • Packages
Availability:built-in
mutex_destroy(+MutexId)
Destroy a mutex. If the mutex is not locked, it is destroyed and further access yields an existence_error exception. As of version 7.1.19, this behaviour is reliable. If the mutex is locked, the mutex is scheduled for delayed destruction: it will be destroyed when it becomes unlocked.