~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/barriers.rst

  • Committer: Andrew Hutchings
  • Date: 2011-02-23 14:17:23 UTC
  • mto: (2196.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 2197.
  • Revision ID: andrew@linuxjedi.co.uk-20110223141723-spck4t85k8igzk4j
Markup fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
User Defined Barriers
2
2
=====================
3
3
 
4
 
SELECT create_barrier();
5
 
 
6
 
SELECT release_barrier();
7
 
 
8
 
SELECT wait();
9
 
 
10
 
SELECT wait_until();
11
 
 
12
 
SELECT signal();
 
4
.. code-block:: mysql
 
5
 
 
6
  SELECT create_barrier();
 
7
 
 
8
  SELECT release_barrier();
 
9
 
 
10
  SELECT wait();
 
11
 
 
12
  SELECT wait_until();
 
13
 
 
14
  SELECT signal();
13
15
 
14
16
A barrier is a synchronization object which can be used to synchronize a group of sessions to a specific rendezvous by calling wait(). When wait() is called, any session of the user may call signal(), allowing all sessions being held by wait() to proceed.
15
17