Changeset 43
- Timestamp:
- 01/03/05 11:24:16 (4 years ago)
- Files:
-
- trunk/src/HelloDWT.d (modified) (1 diff)
- trunk/src/dwt/accessibility/accessible.d (modified) (1 diff)
- trunk/src/dwt/util/thread.d (deleted)
- trunk/src/dwt/widgets/display.d (modified) (3 diffs)
- trunk/src/dwt/widgets/runnablelock.d (modified) (4 diffs)
- trunk/src/dwt/widgets/synchronizer.d (modified) (1 diff)
- trunk/src/dwt/widgets/widget.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/HelloDWT.d
r42 r43 10 10 } 11 11 12 import dwt.util.thread;13 14 12 int main() { 15 printf("Current thread:\n");16 Thread t = Thread.getThis();17 18 13 version (NoDWT) {} else { 19 14 int i = 0; trunk/src/dwt/accessibility/accessible.d
r42 r43 56 56 private import dwt.dwt; 57 57 private import dwt.widgets.control; 58 private import dwt.util.thread;58 private import std.thread; 59 59 60 60 int refCount = 0, enumIndex = 0; trunk/src/dwt/widgets/display.d
r42 r43 20 20 module dwt.widgets.display; 21 21 22 private import dwt.dwt; 23 24 private import dwt.graphics.color; 22 25 private import dwt.graphics.device; 23 private import dwt.dwt;24 25 private import dwt.graphics.color;26 26 private import dwt.graphics.devicedata; 27 27 private import dwt.graphics.font; … … 37 37 private import dwt.util.runnable; 38 38 private import dwt.util.system; 39 private import dwt.util.thread;40 39 private import dwt.util.util; 41 40 // private import dwt.util.string; … … 51 50 private import dwt.widgets.eventtable; 52 51 53 //private import std.thread;52 private import std.thread; 54 53 private import std.string; 55 54 private import std.conv; trunk/src/dwt/widgets/runnablelock.d
r41 r43 1 1 /******************************************************************************* 2 2 * Copyright (c) 2000, 2003 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials 4 4 * are made available under the terms of the Common Public License v1.0 5 5 * which accompanies this distribution, and is available at 6 6 * http://www.eclipse.org/legal/cpl-v10.html 7 * 7 * 8 8 * Contributors: 9 9 * IBM Corporation - initial API and implementation … … 12 12 /******************************************************************************* 13 13 * DWT: SWT port for the D Language 14 * 14 * 15 15 * Contributors: 16 16 * The DWT team at http://www.dsource.org/projects/dwt 17 * 17 * 18 18 *******************************************************************************/ 19 19 … … 22 22 private import dwt.util.runnable; 23 23 private import dwt.util.throwable; 24 //private import std.thread; 25 private import dwt.util.thread; 24 private import std.thread; 26 25 27 26 /** … … 37 36 Thread thread; 38 37 Throwable throwable; 39 38 40 39 this (Runnable runnable) { 41 40 this.runnable = runnable; trunk/src/dwt/widgets/synchronizer.d
r42 r43 20 20 module dwt.widgets.synchronizer; 21 21 22 private import std.thread; 23 22 24 private import dwt.util.runnable; 23 25 private import dwt.util.throwable; 24 26 private import dwt.util.system; 25 private import dwt.util.thread;26 27 27 28 private import dwt.dwt; trunk/src/dwt/widgets/widget.d
r42 r43 19 19 20 20 module dwt.widgets.widget; 21 22 private import std.thread; 21 23 22 24 private import dwt.dwt; … … 343 345 Display display = this.display; 344 346 if (display == null) error (DWT.ERROR_WIDGET_DISPOSED); 345 /+ TODO: <Blandger> 346 dwt.util.thread and std.thread are not compatible ! Compilation fails here 347 if (display.thread != Thread.currentThread ()) error (DWT.ERROR_THREAD_INVALID_ACCESS); 348 +/ 347 if (display.thread != Thread.getThis()) error (DWT.ERROR_THREAD_INVALID_ACCESS); 349 348 if ((state & DISPOSED) != 0) error (DWT.ERROR_WIDGET_DISPOSED); 350 349 }
