~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/barriers.rst

  • Committer: Marisa Plumb
  • Date: 2010-12-07 21:20:16 UTC
  • mto: This revision was merged to the branch mainline in revision 1984.
  • Revision ID: marisa.plumb@gmail.com-20101207212016-20vkqo68uk0gtx0y
more sql doc modifications

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
SELECT signal();
13
13
 
14
14
A barrier is a synchronization objest which can be used to syncronize a
15
 
group of session to a specific rendezvous by calling wait(). At which point
16
 
any session of the user may call signal() and all sessions being held by wait() are allowed to proceed. 
 
15
group of sessions to a specific rendezvous by calling wait(). When wait() is called,
 
16
any session of the user may call signal(), allowing all sessions being held by wait() to proceed. 
17
17
 
18
 
Barriers can optional be created with a limit so that once a set number of sessions have called wait() that all "waiters" are then allowed to proceed. 
 
18
Barriers can optionally be created with a limit so that once a set number of sessions have called wait() that all "waiters" are then allowed to proceed. 
19
19
 
20
20
The session that creates the barrier via create_barrier() is not allowed to
21
21
call either wait() or wait_until().