hunt ~master (2022-04-01T03:44:56Z)
Home
Dub
Repo
Task
hunt
util
TaskPool
class
Task :
AbstractTask
(
alias
fun
Args
...
) {
Args
_args
;
this
(Args args);
this
();
alias
ReturnType
=
typeof
(
fun
(
_args
))
;
static if
(
!is(ReturnType == void)
)
static if
(
is(typeof(&fun(_args)))
)
ReturnType
*
returnVal
;
static if
(
!is(ReturnType == void)
)
static if
(
is(typeof(&fun(_args)))
)
ReturnType
fixRef
(ReturnType* val);
static if
(
!is(ReturnType == void)
)
static if
(!(
is(typeof(&fun(_args)))
))
ReturnType
returnVal
;
static if
(
!is(ReturnType == void)
)
static if
(!(
is(typeof(&fun(_args)))
))
ReturnType
fixRef
(ReturnType val);
void
onRun
();
}
Constructors
this
this
(Args args)
Undocumented in source.
this
this
()
Undocumented in source.
Members
Aliases
ReturnType
alias
ReturnType
=
typeof
(
fun
(
_args
))
The return type of the function called by this
Task
. This can be
void
.
Functions
fixRef
ReturnType
fixRef
(ReturnType* val)
Undocumented in source. Be warned that the author may not have intended to support it.
fixRef
ReturnType
fixRef
(ReturnType val)
Undocumented in source. Be warned that the author may not have intended to support it.
onRun
void
onRun
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
_args
Args
_args
;
Undocumented in source.
returnVal
ReturnType
*
returnVal
;
Undocumented in source.
returnVal
ReturnType
returnVal
;
Undocumented in source.
Inherited Members
From AbstractTask
exception
Throwable
exception
;
Undocumented in source.
taskStatus
ubyte
taskStatus
;
Undocumented in source.
run
void
run
()
Undocumented in source. Be warned that the author may not have intended to support it.
onRun
void
onRun
()
Undocumented in source.
done
bool
done
()
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
hunt
util
TaskPool
classes
AbstractTask
ParallelismThread
PoolStatus
Task
TaskPool
enums
PoolState
ThreadState
functions
addressOf
makeTask
run