Changeset 43

Show
Ignore:
Timestamp:
01/03/05 11:24:16 (4 years ago)
Author:
andy
Message:

Eradicated dwt.util.thread for the moment. It is replaced by std.thread

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/HelloDWT.d

    r42 r43  
    1010} 
    1111 
    12 import dwt.util.thread; 
    13  
    1412int main() { 
    15     printf("Current thread:\n"); 
    16     Thread t = Thread.getThis(); 
    17  
    1813    version (NoDWT) {} else { 
    1914        int i = 0; 
  • trunk/src/dwt/accessibility/accessible.d

    r42 r43  
    5656    private import dwt.dwt; 
    5757    private import dwt.widgets.control; 
    58     private import dwt.util.thread; 
     58    private import std.thread; 
    5959 
    6060    int refCount = 0, enumIndex = 0; 
  • trunk/src/dwt/widgets/display.d

    r42 r43  
    2020module dwt.widgets.display; 
    2121 
     22private import dwt.dwt; 
     23 
     24private import dwt.graphics.color; 
    2225private import dwt.graphics.device; 
    23 private import dwt.dwt; 
    24  
    25 private import dwt.graphics.color; 
    2626private import dwt.graphics.devicedata; 
    2727private import dwt.graphics.font; 
     
    3737private import dwt.util.runnable; 
    3838private import dwt.util.system; 
    39 private import dwt.util.thread; 
    4039private import dwt.util.util; 
    4140//  private import dwt.util.string; 
     
    5150private import dwt.widgets.eventtable; 
    5251 
    53 // private import std.thread; 
     52private import std.thread; 
    5453private import std.string; 
    5554private import std.conv; 
  • trunk/src/dwt/widgets/runnablelock.d

    r41 r43  
    11/******************************************************************************* 
    22 * 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 
    44 * are made available under the terms of the Common Public License v1.0 
    55 * which accompanies this distribution, and is available at 
    66 * http://www.eclipse.org/legal/cpl-v10.html 
    7  *  
     7 * 
    88 * Contributors: 
    99 *     IBM Corporation - initial API and implementation 
     
    1212/******************************************************************************* 
    1313 * DWT: SWT port for the D Language 
    14  *  
     14 * 
    1515 * Contributors: 
    1616 *  The DWT team at http://www.dsource.org/projects/dwt 
    17  *  
     17 * 
    1818 *******************************************************************************/ 
    1919 
     
    2222private import dwt.util.runnable; 
    2323private import dwt.util.throwable; 
    24 //private import std.thread; 
    25 private import dwt.util.thread; 
     24private import std.thread; 
    2625 
    2726/** 
     
    3736    Thread thread; 
    3837    Throwable throwable; 
    39      
     38 
    4039this (Runnable runnable) { 
    4140    this.runnable = runnable; 
  • trunk/src/dwt/widgets/synchronizer.d

    r42 r43  
    2020module dwt.widgets.synchronizer; 
    2121 
     22private import std.thread; 
     23 
    2224private import dwt.util.runnable; 
    2325private import dwt.util.throwable; 
    2426private import dwt.util.system; 
    25 private import dwt.util.thread; 
    2627 
    2728private import dwt.dwt; 
  • trunk/src/dwt/widgets/widget.d

    r42 r43  
    1919 
    2020module dwt.widgets.widget; 
     21 
     22private import std.thread; 
    2123 
    2224private import dwt.dwt; 
     
    343345    Display display = this.display; 
    344346    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); 
    349348    if ((state & DISPOSED) != 0) error (DWT.ERROR_WIDGET_DISPOSED); 
    350349}