diff dwt/widgets/Synchronizer.d @ 37:642f460a0908

Fixed a lot of compile errors, a "hello world" app compiles now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Fri, 10 Oct 2008 12:29:48 +0200
parents 5b53d338c709
children d8635bb48c7c
line wrap: on
line diff
--- a/dwt/widgets/Synchronizer.d	Tue Oct 07 12:56:18 2008 +0200
+++ b/dwt/widgets/Synchronizer.d	Fri Oct 10 12:29:48 2008 +0200
@@ -48,7 +48,7 @@
     Display display;
     int messageCount;
     RunnableLock [] messages;
-    Object messageLock = new Object ();
+    Object messageLock;
     Thread syncThread;
     static const int GROW_SIZE = 4;
     static const int MESSAGE_LIMIT = 64;
@@ -63,6 +63,7 @@
  */
 public this (Display display) {
     this.display = display;
+    messageLock = new Object ();
 }
     
 void addLast (RunnableLock lock) {
@@ -91,7 +92,7 @@
  *
  * @see #syncExec
  */
-protected void asyncExec (Runnable runnable) {
+public void asyncExec (Runnable runnable) {
     if (runnable is null) {
         //TEMPORARY CODE
         if (!IS_CARBON) {
@@ -168,7 +169,7 @@
  *
  * @see #asyncExec
  */
-protected void syncExec (Runnable runnable) {
+public void syncExec (Runnable runnable) {
     RunnableLock lock = null;
     synchronized (Device.classinfo) {
         if (display is null || display.isDisposed ()) DWT.error (DWT.ERROR_DEVICE_DISPOSED);