Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

current_dispatcher_guard

Description

RAII holder for the current async file i/o dispatcher.

Synopsis
class current_dispatcher_guard
{
  // ...
};
Constructor(s)

Function

Description

Parameters

current_dispatcher_guard(dispatcher_ptr _new)

dispatcher_ptr: _new:

~current_dispatcher_guard()
Member Function(s)

Function

Description

Parameters

Returns

void release()

Restore the former async file i/o dispatcher now.

void dismiss()

Don't restore the former async file i/o dispatcher.

void reset(dispatcher_ptr p)

Set a different former async file i/o dispatcher on destruction.

dispatcher_ptr: p:

Header

#include <boost/afio/v2/afio.hpp>


PrevUpHomeNext