up: THREAD     index Zimbu documentation

CLASS THREAD.ThreadBase @abstract @public

summary

     

Base class for Thread and EvalThread

string  $name @public  optional name, NIL when not set
THREAD.State  $state @public  state of the thread
Type  $type @public  type of thread
int  $ctxLen @file 
 
NEW() @public  Create a new thread.
$setName(name) ThreadBase @file  Set the name of the thread.
$body() @public 
$start() ThreadBase @public  Start executing the thread.
$wait() @public  Wait in the current thread for the thread of this object to finish.
$kill() @public  Kill the thread, stop its execution.
$remove() @public  Not Implemented Yet
 
Known subclasses:
     
 

members (alphabetically)

     

int $ctxLen @file

string $name @public

     

optional name, NIL when not set

THREAD.State $state @public

     

state of the thread

Type $type @public

     

type of thread

PROC NEW() @public

     

Create a new thread.

Must call setProc() or replace body() before it can do something useful.

PROC $body() @abstract @public

PROC $kill() @public

     

Kill the thread, stop its execution.

PROC $remove() @public

     

Not Implemented Yet

FUNC $setName(string name) ThreadBase @file

     

Set the name of the thread.

FUNC $start() ThreadBase @default @public

     

Start executing the thread.

This will create the actual thread and have it invoke body(). This method returns once the thread has started.

Returns THIS

PROC $wait() @public

     

Wait in the current thread for the thread of this object to finish.

license

      Copyright 2009 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0