Ark Server API (ASA) - Wiki
|
#include <ScopedCallback.h>
Public Member Functions | |
TScopedCallback () | |
~TScopedCallback () | |
void | Request () |
void | Unrequest () |
bool | HasRequests () const |
Private Attributes | |
int32 | Counter |
Helper object for batching callback requests and firing on destruction of the FScopedCallback object. CallbackType is a class implementing a static method called FireCallback, which does the work.
Definition at line 13 of file ScopedCallback.h.
|
inline |
Definition at line 17 of file ScopedCallback.h.
|
inline |
Fires a callback if outstanding requests exist.
Definition at line 22 of file ScopedCallback.h.
|
inline |
Checks whether this callback has outstanding requests.
Definition at line 47 of file ScopedCallback.h.
|
inline |
Request a callback.
Definition at line 31 of file ScopedCallback.h.
|
inline |
Unrequest a callback.
Definition at line 37 of file ScopedCallback.h.
|
private |
Counts callback requests.
Definition at line 55 of file ScopedCallback.h.