Skip to content

Commit

Permalink
Rdoc formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmahoney committed Mar 4, 2012
1 parent b7d26eb commit b6a6c2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rdoc
Expand Up @@ -8,17 +8,17 @@ Mac. Atop these semaphores are implemented ProcessShared::Semaphore,
ProcessShared::Mutex. POSIX shared memory is used to implement
ProcessShared::SharedMemory.

On Linux, POSIX semaphores support +sem_timedwait()+ which can wait on
On Linux, POSIX semaphores support <tt>sem_timedwait()</tt> which can wait on
a semaphore but stop waiting after a timeout.

Mac OS X's implementation of POSIX semaphores does not support
timeouts. But, the Mach layer in Mac OS X has its own semaphores that
do support timeouts. Thus, process_shared implements a moderate
subset of the Mach API, which is quite a bit different from POSIX.
Namely, semaphores created in one process are not available in child
processes created via +fork()+. Mach does provide the means to copy
processes created via <tt>fork()</tt>. Mach does provide the means to copy
capabilities between tasks (Mach equivalent to processes).
process_shared overrides Ruby's +fork+ methods so that semaphores are
process_shared overrides Ruby's <tt>fork</tt> methods so that semaphores are
copied from parent to child to emulate the POSIX behavior.

This is an incomplete work in progress.
Expand Down

0 comments on commit b6a6c2f

Please sign in to comment.