abstract public class AsyncStateEnumerator
| Modifier and Type | Field |
|---|---|
|
__context$2
|
Task |
__current$2
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Task |
proceed(Enumerator<system'threading'Task> e)
|
| Modifier and Type | Property |
|---|---|
get Task |
Value()
|
| Modifier and Type | Conversion Method |
|---|---|
Enumerator |
cast()
|
| Modifier and Type | Method |
|---|---|
|
enumerable()
|
|
reset()
|
public class AutoResetEvent
| Modifier and Type | Field |
|---|---|
EventHandle |
_handle
|
| Modifier and Type | Constructor / Static Method |
|---|---|
AutoResetEvent |
new()
|
public class BaseEvent
| Modifier and Type | Field |
|---|---|
EventHandle |
_handle
|
| Modifier and Type | Method |
|---|---|
|
close()
|
|
reset()
|
|
set()
|
|
wait()
|
BoolValue |
wait(IntNumber timeOut)
|
public template BlockingQueue<T1>
| Modifier and Type | Field |
|---|---|
ConcurrentQueue<T1> |
_list
|
Semaphore |
_semaphore
|
| Modifier and Type | Constructor / Static Method |
|---|---|
BlockingQueue<T1> |
constructor()
|
public class CancellationToken
| Modifier and Type | Field |
|---|---|
CancellationTokenSource |
_source
|
| Modifier and Type | Constructor / Static Method |
|---|---|
internal CancellationToken |
new()
|
internal CancellationToken |
new(CancellationTokenSource source)
|
| Modifier and Type | Constructor / Static Method |
|---|---|
private |
function:#class_init()
|
| Modifier and Type | Static Property |
|---|---|
get CancellationToken |
None()
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
CanBeCanceled()
|
get BoolValue |
IsCancellationRequested()
|
| Modifier and Type | Method |
|---|---|
CancellationTokenRegistration |
register(Func action)
|
|
throwIfCancellationRequested()
|
public class CancellationTokenRegistration
| Modifier and Type | Field |
|---|---|
CancellationTokenSource |
_source
|
Func |
_action
|
Thread |
_executingThread
|
ManualResetEvent |
_completion
|
Reference<system'IntNumber> |
_waiterCount
|
| Modifier and Type | Constructor / Static Method |
|---|---|
internal CancellationTokenRegistration |
new()
|
internal CancellationTokenRegistration |
new(CancellationTokenSource source, Func action)
|
| Modifier and Type | Method |
|---|---|
|
close()
|
internal |
completeAction()
|
internal Func |
takeAction()
|
public class CancellationTokenSource
| Modifier and Type | Field |
|---|---|
BoolValue |
_cancellationRequested
|
CancellationToken |
_token
|
List<system'threading'CancellationTokenRegistration> |
_registrations
|
TimerRegistration |
_timer
|
| Modifier and Type | Constructor / Static Method |
|---|---|
CancellationTokenSource |
new()
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
IsCancellationRequested()
|
get CancellationToken |
Token()
|
| Modifier and Type | Method |
|---|---|
|
cancel()
|
|
cancelAfter(IntNumber milliseconds)
|
internal CancellationTokenRegistration |
register(Func action)
|
internal |
unregister(CancellationTokenRegistration registration)
|
public class CountDownEvent
| Modifier and Type | Field |
|---|---|
EventHandle |
_handle
|
IntNumber |
_counter
|
| Modifier and Type | Constructor / Static Method |
|---|---|
CountDownEvent |
new(IntNumber counter)
|
public class ManualResetEvent
| Modifier and Type | Field |
|---|---|
EventHandle |
_handle
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ManualResetEvent |
new()
|
ManualResetEvent |
new(BoolValue value)
|
public class OperationCanceledException
| Modifier and Type | Field |
|---|---|
String |
message
|
CallStack |
callStack
|
CancellationToken |
_cancellationToken
|
| Modifier and Type | Constructor / Static Method |
|---|---|
OperationCanceledException |
new()
|
OperationCanceledException |
withToken(CancellationToken cancellationToken)
|
| Modifier and Type | Property |
|---|---|
get CancellationToken |
Token()
|
public class Semaphore
| Modifier and Type | Field |
|---|---|
Handle |
_handle
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Semaphore |
create(IntNumber initValue, IntNumber maxValue)
|
Semaphore |
create(IntNumber initValue)
|
| Modifier and Type | Method |
|---|---|
|
close()
|
|
release()
|
|
wait()
|
public class Task
| Modifier and Type | Field |
|---|---|
TaskStatus |
_status
|
Exception |
_exception
|
Action<system'threading'Task> |
_continuation
|
List<system'Action<system'threading'Task>> |
_continuations
|
Func |
_action
|
CancellationToken |
_cancellationToken
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Task |
assign(Func action)
|
Task |
assign(Func1 action, Object arg)
|
internal Task |
assignCancelable(Func action, CancellationToken cancellationToken)
|
Task |
constructor2()
|
internal Task |
newPromise()
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Task |
completedTask()
|
|
dispatch()
|
Task |
fromCanceled(CancellationToken cancellationToken)
|
Task |
fromException(Exception ex)
|
Task |
run(Func action)
|
Task |
run(Func1 action, Object arg)
|
Task |
run(Func action, CancellationToken token)
|
Task |
sleep(IntNumber msecs)
|
Task |
sleep(IntNumber msecs, CancellationToken token)
|
|
waitAll(system'threading'Task[] tasks)
|
|
waitAllArgs(params Task[] tasks)
|
Task |
whenAll(system'threading'Task[] tasks)
|
Task |
whenAllArgs(params Task[] tasks)
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
IsCanceled()
|
get BoolValue |
IsCompleted()
|
get BoolValue |
IsCompletedSuccessfully()
|
get BoolValue |
IsFaulted()
|
get |
Result()
|
get TaskStatus |
Status()
|
| Modifier and Type | Method |
|---|---|
internal private CancellationToken |
cancellationToken()
|
Task |
continueWith(Action<system'threading'Task> action)
|
internal private Exception |
Exception()
|
internal private |
getResultUnsafe()
|
internal |
onCompleted(Action<system'threading'Task> action)
|
internal |
setCanceled(CancellationToken cancellationToken)
|
internal |
setException(Exception ex)
|
internal |
setResult()
|
|
start()
|
|
system@threading@Task$$initialize()
|
internal BoolValue |
trySetCanceled(CancellationToken cancellationToken)
|
internal BoolValue |
trySetException(Exception ex)
|
internal BoolValue |
trySetResult()
|
|
wait()
|
public template Task<T1>
| Modifier and Type | Field |
|---|---|
TaskStatus |
_status
|
Exception |
_exception
|
Action<system'threading'Task> |
_continuation
|
List<system'Action<system'threading'Task>> |
_continuations
|
Func |
_action
|
CancellationToken |
_cancellationToken
|
T1 |
_result
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Task<T1> |
assign(Func<T1> func)
|
internal Task<T1> |
assignCancelable(Func<T1> func, CancellationToken cancellationToken)
|
Task<T1> |
constructor(T1 retVal)
|
Task<T1> |
constructor2()
|
internal Task<T1> |
newPromise()
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Task<T1> |
fromCanceled(CancellationToken cancellationToken)
|
Task<T1> |
fromResult(T1 result)
|
Task<T1> |
run(Func<T1> action)
|
Task<T1> |
run(Func<T1> action, CancellationToken token)
|
| Modifier and Type | Property |
|---|---|
get T1 |
Result()
|
| Modifier and Type | Conversion Method |
|---|---|
T1 |
cast()
|
| Modifier and Type | Method |
|---|---|
internal private T1 |
getResultUnsafe()
|
internal private |
setResultValue(T1 result)
|
public class TaskCanceledException
| Modifier and Type | Field |
|---|---|
String |
message
|
CallStack |
callStack
|
CancellationToken |
_cancellationToken
|
| Modifier and Type | Constructor / Static Method |
|---|---|
TaskCanceledException |
new()
|
TaskCanceledException |
withToken(CancellationToken cancellationToken)
|
public class TaskStatus
| Modifier and Type | Field |
|---|---|
IntNumber |
_value
|
public class Thread
| Modifier and Type | Field |
|---|---|
ThreadHandle |
_handle
|
Object |
_startArg
|
| Modifier and Type | Constructor / Static Method |
|---|---|
Thread |
assign(Func f)
Creates a new thread. It must be started later
|
Thread |
assign(Func1 f)
|
Thread |
assign(Func f, IntNumber stackSize)
|
Thread |
assign(Func1 f, IntNumber stackSize)
|
internal Thread |
current()
|
Thread |
new(Func1 f, IntNumber stackSize)
|
Thread |
start(Func f)
Creates and starts a new thread
|
Thread |
start(Func f, IntNumber stackSize)
|
Thread |
start(Func1 f)
|
| Modifier and Type | Constructor / Static Method |
|---|---|
|
sleep(IntNumber milliseconds)
|
| Modifier and Type | Static Property |
|---|---|
get Thread |
Current()
|
| Modifier and Type | Property |
|---|---|
get BoolValue |
IsAlive()
|
get ThreadPriority |
Priority()
|
set |
Priority(ThreadPriority value)
|
| Modifier and Type | Method |
|---|---|
|
close()
|
|
join()
|
|
join(IntNumber milliseconds)
|
|
start()
|
|
start(Object arg)
|
public class ThreadHandle
| Modifier and Type | Field |
|---|---|
Handle |
_handle
|
UnsafePointer |
_actionPtr
|
| Modifier and Type | Constructor / Static Method |
|---|---|
ThreadHandle |
constructor(Object f)
|
ThreadHandle |
constructor(Object f, IntNumber stackSize)
|
ThreadHandle |
constructor()
|
| Modifier and Type | Constructor / Static Method |
|---|---|
|
sleep(IntNumber interval)
|
| Modifier and Type | Method |
|---|---|
BoolValue |
checkIfAlive()
|
|
close()
|
ThreadPriority |
getPriority()
|
|
join()
|
|
join(IntNumber timeOut)
|
|
setPriority(ThreadPriority priority)
|
|
start()
|
public class ThreadPool
| Modifier and Type | Constructor / Static Method |
|---|---|
|
configure(IntNumber minThreads, IntNumber maxThreads)
|
private |
function:#class_init()
|
|
queueAction(Func action)
|
|
queueAction(Func1 action, Object arg)
|
| Modifier and Type | Static Property |
|---|---|
get IntNumber |
WorkerCount()
|
public class ThreadPriority
| Modifier and Type | Field |
|---|---|
IntNumber |
_value
|
| Modifier and Type | Name |
public |
CancellationToken#initializer$inline0
|
|---|
| Modifier and Type | Name |
public |
ThreadPool#initializer$inline0
|
|---|
| Modifier and Type | Name |
public |
TimerQueue#initializer$inline0
|
|---|