Przeglądaj źródła

some additional comment about the relaxed mode

Olivier Aumage 6 lat temu
rodzic
commit
05b638bbf5
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      doc/doxygen_dev/chapters/010_core.doxy

+ 5 - 0
doc/doxygen_dev/chapters/010_core.doxy

@@ -114,6 +114,11 @@ counter, itself protected by the worker's sched_mutex. When state_relax_refcnt
 >the observation must repeatedly wait on the targeted worker's sched_cond
 >condition until state_relax_refcnt > 0.
 
+The relaxed mode, while on, can actually be seen as a transactional consistency
+model, where concurrent accesses are authorized and potential conflicts are
+resolved after the fact. When the relaxed mode is off, the consistency model
+becomes a mutual exclusion model, where the sched_mutex of the worker must be
+held in order to access or change the worker state.
 
 Parallel tasks related states