mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.docs
git-svn-id: svn://ultimatepp.org/upp/trunk@9372 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
cc4082829d
commit
15000b4da7
1 changed files with 5 additions and 4 deletions
|
|
@ -16,10 +16,11 @@ topic "SpinLock";
|
|||
oveable][3 <][*3 SpinLock][3 >_]&]
|
||||
[s2;%% Lightweight busywaiting synchronization lock. Unlike Mutex,
|
||||
SpinLock waits in a loop until resource becomes available, thus
|
||||
avoiding costs of system call at the price of active wating.
|
||||
SpinLock methods are also usually inlined (and trivial). SpinLock
|
||||
is [* not] reentrant and also [* not] fair (if more threads are waiting
|
||||
on the same SpinLock, the order of acquiring it is not specified).&]
|
||||
avoiding costs of contention system context switch at the price
|
||||
of active waiting. SpinLock methods are also usually inlined
|
||||
(and trivial). SpinLock is [* not] reentrant and also [* not] fair
|
||||
(if more threads are waiting on the same SpinLock, the order
|
||||
of acquiring it is not specified).&]
|
||||
[s3; &]
|
||||
[ {{10000F(128)G(128)@1 [s0;%% [* Public Method List]]}}&]
|
||||
[s3; &]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue