|
Squid Web Cache master
|
a smart AsyncCall pointer for delivery of future results More...
#include <AsyncCallbacks.h>
Public Member Functions | |
| AsyncCallback ()=default | |
| template<class Call > | |
| AsyncCallback (const RefCount< Call > &call) | |
| Answer & | answer () |
| AsyncCall::Pointer | release () |
| operator bool () const | |
| whether the callback has been set but not released | |
| operator const AsyncCall::Pointer & () const | |
| const AsyncCall & | operator* () const |
| const AsyncCall * | operator-> () const |
Private Attributes | |
| AsyncCall::Pointer | call_ |
| callback carrying the answer | |
| Answer * | answer_ = nullptr |
Definition at line 31 of file AsyncCallbacks.h.
|
default |
|
inlineexplicit |
Definition at line 38 of file AsyncCallbacks.h.
|
inline |
Definition at line 44 of file AsyncCallbacks.h.
References AsyncCallback< Answer >::answer_, and assert.
Referenced by sslCrtvdHandleReplyWrapper(), Ipc::StartListening(), and Ssl::CertValidationHelper::Submit().
|
inlineexplicit |
Definition at line 61 of file AsyncCallbacks.h.
References AsyncCallback< Answer >::answer_.
|
inline |
Definition at line 64 of file AsyncCallbacks.h.
References AsyncCallback< Answer >::call_.
|
inline |
Definition at line 65 of file AsyncCallbacks.h.
References AsyncCallback< Answer >::call_.
|
inline |
Definition at line 66 of file AsyncCallbacks.h.
References AsyncCallback< Answer >::call_.
|
inline |
make this smart pointer nil
Definition at line 52 of file AsyncCallbacks.h.
References AsyncCallback< Answer >::answer_, and AsyncCallback< Answer >::call_.
Referenced by sslCrtvdHandleReplyWrapper(), Ipc::StartListening(), and Ssl::CertValidationHelper::Submit().
|
private |
(future) answer inside this->call, obtained when it was still possible to reach it without dynamic casts and virtual methods
Definition at line 74 of file AsyncCallbacks.h.
Referenced by AsyncCallback< Answer >::answer(), AsyncCallback< Answer >::operator bool(), and AsyncCallback< Answer >::release().
|
private |
Definition at line 70 of file AsyncCallbacks.h.
Referenced by AsyncCallback< Answer >::operator const AsyncCall::Pointer &(), AsyncCallback< Answer >::operator*(), AsyncCallback< Answer >::operator->(), and AsyncCallback< Answer >::release().