mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 13:00:28 +00:00
Improve the affinity system calls
This commit is contained in:
parent
60b68d7152
commit
59ac141e49
19 changed files with 231 additions and 123 deletions
|
@ -4602,7 +4602,7 @@ UNIX MODULE
|
|||
Exchanges value.
|
||||
|
||||
This sets word at `word_index` to `value` and returns the value
|
||||
previously held in by the word.
|
||||
previously held within that word.
|
||||
|
||||
This operation is atomic and provides the same memory barrier
|
||||
semantics as the aligned x86 LOCK XCHG instruction.
|
||||
|
@ -4614,8 +4614,8 @@ UNIX MODULE
|
|||
|
||||
This inspects the word at `word_index` and if its value is the same
|
||||
as `old` then it'll be replaced by the value `new`, in which case
|
||||
`true, old` shall be returned. If a different value was held at
|
||||
word, then `false` shall be returned along with the word.
|
||||
true shall be returned alongside `old`. If a different value was
|
||||
held at word, then `false` shall be returned along with its value.
|
||||
|
||||
This operation happens atomically and provides the same memory
|
||||
barrier semantics as the aligned x86 LOCK CMPXCHG instruction.
|
||||
|
@ -4626,8 +4626,8 @@ UNIX MODULE
|
|||
Fetches then adds value.
|
||||
|
||||
This method modifies the word at `word_index` to contain the sum of
|
||||
value and the `value` paremeter. This method then returns the value
|
||||
as it existed before the addition was performed.
|
||||
its value and the `value` paremeter. This method then returns the
|
||||
value as it existed before the addition was performed.
|
||||
|
||||
This operation is atomic and provides the same memory barrier
|
||||
semantics as the aligned x86 LOCK XADD instruction.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue