IThreadingApi Methods

GF API Documentation

The IThreadingApi type exposes the following members.

Methods

  NameDescription
Public methodAdvance
Should be invoked in a loop by a single thread. This will be referred to as the API thread in documentation. Causes the API to process its message queues. Returns when queue has emptied. IGFClient enqueues received messages asynchronously. Advance MUST be called regularly for proper functionality. IGFClient is not threadsafe. Other threads MUST NOT operate on IGFClient while this call is executing.
Public methodBeginDelayedInvoke
Enqueue an action from any thread that will be invoked after a delay on the API thread in Advance. Returns immediately without waiting for invocation.
Public methodBeginInvoke
Enqueue an action from any thread that will be invoked on the API thread in Advance. Returns immediately without waiting for invocation.
Public methodInvoke(Action)
Enqueue an action from a non-API thread that will be invoked on the API thread in Advance. Will not return until invocation is complete.
Public methodInvokeT(FuncT)
Enqueue a func from a non-API thread that will be invoked on the API thread in Advance. Will not return until invocation is complete.
Top
See Also

Reference