atscppapi  1.0.9
C++ wrapper for Apache Traffic Server API
 All Classes Files Functions Enumerations Enumerator Macros
Static Public Member Functions | List of all members
atscppapi::Async Class Reference

This class provides a method to create an async operation. More...

#include "Async.h"

Inherits atscppapi::noncopyable.

Static Public Member Functions

template<typename AsyncProviderType >
static void execute (AsyncReceiver< AsyncProviderType > *event_receiver, AsyncProviderType *provider, shared_ptr< Mutex > mutex)
 

Detailed Description

This class provides a method to create an async operation.

Member Function Documentation

template<typename AsyncProviderType >
static void atscppapi::Async::execute ( AsyncReceiver< AsyncProviderType > *  event_receiver,
AsyncProviderType *  provider,
shared_ptr< Mutex mutex 
)
inlinestatic

This method sets up the dispatch controller to link the async operation provider and receiver and then initiates the operation by invoking the provider.

Parameters
event_receiverThe receiver of the async complete dispatch.
providerThe provider of the async operation.
mutexThe mutex that is locked during the dispatch of the async event complete. One will be created if nothing is passed in. Transaction plugins should use TransactionPlugin::getMutex() here and global plugins can pass an appropriate or NULL mutex.

The documentation for this class was generated from the following file: