Pepper_31_C++_interfaces
|
#include <completion_callback.h>
Public Types | |
typedef ::pp::internal::CompletionCallbackWithOutputBase < T, internal::ExtCallbackOutputTraits < T > > | BaseType |
Public Types inherited from pp::internal::CompletionCallbackWithOutputBase< T, internal::ExtCallbackOutputTraits< T > > | |
typedef internal::ExtCallbackOutputTraits < T >::StorageType | OutputStorageType |
typedef internal::ExtCallbackOutputTraits < T >::APIArgType | APIArgType |
typedef internal::ExtCallbackOutputTraits < T > | TraitsType |
Additional Inherited Members | |
Protected Attributes inherited from pp::CompletionCallback | |
PP_CompletionCallback | cc_ |
ExtCompletionCallbackWithOutput is similar to CompletionCallbackWithOutput, but used by APIs within the pp::ext namespace. Usually it is used with the CompletionCallbackFactory's NewExtCallbackWithOutput.
Definition at line 304 of file completion_callback.h.
typedef ::pp::internal::CompletionCallbackWithOutputBase< T, internal::ExtCallbackOutputTraits<T> > pp::ext::ExtCompletionCallbackWithOutput< T >::BaseType |
Definition at line 309 of file completion_callback.h.
|
inlineexplicit |
The default constructor will create a blocking ExtCompletionCallbackWithOutput
that references the given output data.
[in] | output | A pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback. OutputStorageType is either ext::internal::ArrayVarOutputAdapterWithStorage<U> (if the template parameter T is of the form std::vector<U>) or ext::internal::VarOutputAdapterWithStorage<T> (otherwise). |
Note: Blocking completion callbacks are only allowed from background threads.
Definition at line 324 of file completion_callback.h.
|
inline |
A constructor for creating an ExtCompletionCallbackWithOutput
that references the given output data.
[in] | func | The function to be called on completion. |
[in] | user_data | The user data to be passed to the callback function. This is optional and is typically used to help track state in case of multiple pending callbacks. |
[in] | output | A pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback. |
Definition at line 338 of file completion_callback.h.
|
inline |
A constructor for creating an ExtCompletionCallbackWithOutput
that references the given output data.
[in] | func | The function to be called on completion. |
[in] | user_data | The user data to be passed to the callback function. This is optional and is typically used to help track state in case of multiple pending callbacks. |
[in] | flags | Bit field combination of PP_CompletionCallback_Flag flags used to control how non-NULL callbacks are scheduled by asynchronous methods. |
[in] | output | A pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback. |
Definition at line 359 of file completion_callback.h.