comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/Lock.d @ 51:c01d033c633a

[swt lin]
author Frank Benoit <benoit@tionex.de>
date Fri, 27 Mar 2009 19:58:06 +0100
parents 65761bc28ab2
children fb3aa8075988
comparison
equal deleted inserted replaced
50:d5075f5226e5 51:c01d033c633a
32 Condition cond; 32 Condition cond;
33 } else { // Phobos 33 } else { // Phobos
34 } 34 }
35 35
36 public this() { 36 public this() {
37 mutex = new Mutex; 37 version(Tango){
38 cond = new Condition(mutex); 38 mutex = new Mutex;
39 cond = new Condition(mutex);
40 } else { // Phobos
41 implMissing( __FILE__, __LINE__ );
42 }
39 } 43 }
40 /** 44 /**
41 * Locks the monitor and returns the lock count. If 45 * Locks the monitor and returns the lock count. If
42 * the lock is owned by another thread, wait until 46 * the lock is owned by another thread, wait until
43 * the lock is released. 47 * the lock is released.
62 } 66 }
63 return ++count; 67 return ++count;
64 } 68 }
65 } else { // Phobos 69 } else { // Phobos
66 implMissing( __FILE__, __LINE__ ); 70 implMissing( __FILE__, __LINE__ );
71 return 0;
67 } 72 }
68 } 73 }
69 74
70 /** 75 /**
71 * Unlocks the monitor. If the current thread is not 76 * Unlocks the monitor. If the current thread is not