PROT_SEM + FUTEX
Is PROT_SEM necessary anymore? 2.5.46 does not seem to include any references to it that adjust behaviour for pages. Would it be reasonable to remove it, or #define PROT_SEM to (0) to avoid confusion?
I am beginning to play with the FUTEX system call. I am hoping that PROT_SEM is not required, as I intend to scatter the words throughout memory, and it would be a real pain to mprotect(PROT_SEM) each page that contains a FUTEX word.
For systems that do not support the FUTEX system call (2.4.x?), is sched_yield() the best alternative?
Thanks,
mark
Signature · 9 lines
[email protected]/[email protected]/[email protected] __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/