• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
    • RDF quality heuristics
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

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_property(?MutexId, ?Property)
True if Property is a property of MutexId. Defined properties are:
alias(Alias)
Mutex has the defined alias name. See mutex_create/2 using the‘alias' option.
status(Status)
Current status of the mutex. One of unlocked if the mutex is currently not locked, or locked(Owner, Count) if mutex is locked Count times by thread Owner. Note that unless Owner is the calling thread, the locked status can change at any time. There is no useful application of this property, except for diagnostic purposes.bugAs Owner and Count are fetched separately from the mutex, the values may be inconsistent.
ClioPatria (version V3.1.1-40-g9d9e003)