~ubuntu-branches/ubuntu/saucy/geary/saucy-updates

« back to all changes in this revision

Viewing changes to src/engine/nonblocking/nonblocking-variants.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-10-10 17:40:37 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20131010174037-5p5o4dlsoewek2kg
Tags: 0.4.0-0ubuntu1
New stable version

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * (version 2.1 or later).  See the COPYING file in this distribution.
5
5
 */
6
6
 
 
7
/**
 
8
 * A Semaphore is a broadcasting, manually-resetting {@link AbstractSempahore}.
 
9
 */
 
10
 
7
11
public class Geary.Nonblocking.Semaphore : Geary.Nonblocking.AbstractSemaphore {
8
12
    public Semaphore(Cancellable? cancellable = null) {
9
13
        base (true, false, cancellable);
10
14
    }
11
15
}
12
16
 
 
17
/**
 
18
 * An Event is a broadcasting, auto-resetting {@link AbstractSempahore}.
 
19
 */
 
20
 
13
21
public class Geary.Nonblocking.Event : Geary.Nonblocking.AbstractSemaphore {
14
22
    public Event(Cancellable? cancellable = null) {
15
23
        base (true, true, cancellable);
16
24
    }
17
25
}
18
26
 
 
27
/**
 
28
 * A Spinlock is a single-notifying, auto-resetting {@link AbstractSempahore}.
 
29
 */
 
30
 
19
31
public class Geary.Nonblocking.Spinlock : Geary.Nonblocking.AbstractSemaphore {
20
32
    public Spinlock(Cancellable? cancellable = null) {
21
33
        base (false, true, cancellable);