X-Git-Url: http://git.madism.org/?p=~madcoder%2Fpwqr.git;a=blobdiff_plain;f=Documentation%2Fpwqr.adoc;h=194209759a63d26a5a204cc6388d4ad4b4e32490;hp=0c04746773a8f32d6c3c9510fb18f12a30726108;hb=3560071ae86bc78a0b4eafff5911a553e7651f64;hpb=170387f1b2fdd96e6271d658161926086a9c2586 diff --git a/Documentation/pwqr.adoc b/Documentation/pwqr.adoc index 0c04746..1942097 100644 --- a/Documentation/pwqr.adoc +++ b/Documentation/pwqr.adoc @@ -213,9 +213,8 @@ Valid values for the `op` argument are: value is passed as the `val` argument. The requests returns the old concurrency level on success. + - A zero or negative value for `val` means 'automatic' and is recomputed - as the current number of online CPUs as - `sysconf(_SC_NPROCESSORS_ONLN)` would return. +A zero or negative value for `val` means 'automatic' and is recomputed as the +current number of online CPUs as `sysconf(_SC_NPROCESSORS_ONLN)` would return. `PWQR_REGISTER`:: Registers the calling thread to be taken into account by the pool @@ -258,6 +257,9 @@ If the concurrency level is below the target, then the kernel checks if the address `addr` still contains the value `val` (in the fashion of `futex(2)`). If it doesn't then the call doesn't block. Else the calling thread is blocked until a `PWQR_WAKE` command is received. ++ +`addr` must of course be a pointer to an aligned integer which stores the +reference ticket in userland. `PWQR_PARK`:: Puts the thread in park mode. Those are spare threads to avoid