r3async
oops/r3async.h
r3oops
Asynchronous executor object
r3Root
R3CLID_ROOT
r3Asyncexecutor
R3CLID_ASYNCEXECUTOR - 1909
R3ASYNCM_DOMSGA3
DOMSGA3
R3ASYNCM_DOMSGA3
R3BOOL, true if succeeded.
R3OBJ*, object to be called as
R3INT, method
rc = obj.DOMSGA3(p1, p2, 0);
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
DOMSGA3NOREFCOUNT
R3ASYNCM_DOMSGA3NOREFCOUNT
R3BOOL, true if succeeded.
R3OBJ*, object to be called as
R3INT, method
rc = obj.DOMSGA3NOREFCOUNT(p1, p2, 0);
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
QUIT
R3ASYNCM_QUIT
R3BOOL
rc = obj.QUIT();
Shut down the async. thread. Dont' call outside.
Attrs
StackLike
StackLike
R3ASYNCA_StackLike
Boolean
R3BOOL
first in last out
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
Priority
R3ASYNCA_Priority
Boolean
R3BOOL
see priority codes below
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