r3async

r3async

Class

oops/r3async.h

Library

r3oops

Description:

Asynchronous executor object

See Also

oops/r3root.h

Super Class

r3Root

R3CLID_ROOT

JavaScript

r3Asyncexecutor

Class Identifier

R3CLID_ASYNCEXECUTOR - 1909

Methods

DOMSGA3, DOMSGA3NOREFCOUNT, QUIT,

Attributes

StackLike, Priority,

R3ASYNCM_DOMSGA3

Method

DOMSGA3

Identifier

R3ASYNCM_DOMSGA3

Return

R3BOOL, true if succeeded.

Param 1:

R3OBJ*, object to be called as

Param 2:

R3INT, method

JavaScript

rc = obj.DOMSGA3(p1, p2, 0);

Description

Run given method by async. thread. The method increases the * reference count of the call back object when the job is added to the job list and decrements the ref count when the method is executed. *

R3ASYNCM_DOMSGA3NOREFCOUNT

Method

DOMSGA3NOREFCOUNT

Identifier

R3ASYNCM_DOMSGA3NOREFCOUNT

Return

R3BOOL, true if succeeded.

Param 1:

R3OBJ*, object to be called as

Param 2:

R3INT, method

JavaScript

rc = obj.DOMSGA3NOREFCOUNT(p1, p2, 0);

Description

Run given method by async. thread. The method does not * use reference counting to the caller must make sure * the target object stays alive longer than the async. executor. *

R3ASYNCM_QUIT

Method

QUIT

Identifier

R3ASYNCM_QUIT

Return

R3BOOL

JavaScript

rc = obj.QUIT();

Description

Shut down the async. thread. Dont' call outside.

Attrs

StackLike

Attribute

StackLike

Identifier

R3ASYNCA_StackLike

JavaScript type

Boolean

C type

R3BOOL

Description

first in last out

Syntax


jsobj.SetStackLike(value);
value = jsobj.GetStackLike();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3ASYNCA_StackLike, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3ASYNCA_StackLike, &value, R3TAG_END);

Priority

Attribute

Priority

Identifier

R3ASYNCA_Priority

JavaScript type

Boolean

C type

R3BOOL

Description

see priority codes below

Syntax


jsobj.SetPriority(value);
value = jsobj.GetPriority();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3ASYNCA_Priority, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3ASYNCA_Priority, &value, R3TAG_END);

Priorities

R3APRI_IDLE
R3APRI_LOWEST
R3APRI_BELOWNORMAL
R3APRI_NORMAL
R3APRI_ABOVENORMAL
R3APRI_HIGHEST

Tags

Tags

R3ASYNCA_NotifyObj
R3ASYNCA_NotifyMth