瀏覽代碼

some additional comment about the relaxed mode

Olivier Aumage 6 年之前
父節點
當前提交
05b638bbf5
共有 1 個文件被更改,包括 5 次插入0 次删除
  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