DescriptionAdd ThreadBarrier; use in GCMarker and unit test
Thread barrier with:
* fixed (at construction) number n of participating threads {T1,T2,T3,...,Tn}
* unknown number of rounds.
Requirements:
* there is some R such that each participating thread makes
R calls to Sync() followed by its one and only call to Exit().
Guarantees:
* for any two threads Ti and Tj and round number r <= R,
everything done by Ti before its r'th call to Sync() happens before
everything done by Tj after its r'th call to Sync().
Note:
* it's not required that the thread that constructs the barrier participates.
BUG=
Committed: https://github.com/dart-lang/sdk/commit/17a6b944d16aeefd0e4e8374d958465f62b8d8e6
Patch Set 1 #Patch Set 2 : Rename field. #Patch Set 3 : Comments. #Patch Set 4 : Rename local. #Patch Set 5 : Add fuzz test. #Patch Set 6 : Add usage example. #
Total comments: 4
Patch Set 7 : Fix git. #Patch Set 8 : Fix git again. #
Messages
Total messages: 7 (1 generated)
|