NCBI C++ ToolKit
Public Types | Public Member Functions | List of all members
SSimpleLock< Resource > Struct Template Reference

Search Toolkit Book for SSimpleLock

SSimpleLock is a functor to wrap calling Lock(). More...

#include <corelib/guard.hpp>

Public Types

typedef Resource resource_type

Public Member Functions

void operator() (resource_type &resource) const

Detailed Description

template<class Resource>
struct SSimpleLock< Resource >

SSimpleLock is a functor to wrap calling Lock().

While this may seem excessive, it permits a lot of flexibility in defining what it means to acquire a lock

Definition at line 48 of file guard.hpp.

Member Typedef Documentation

◆ resource_type

template<class Resource >
typedef Resource SSimpleLock< Resource >::resource_type

Definition at line 50 of file guard.hpp.

Member Function Documentation

◆ operator()()

template<class Resource >
void SSimpleLock< Resource >::operator() ( resource_type resource) const

Definition at line 51 of file guard.hpp.

The documentation for this struct was generated from the following file:
Modified on Wed May 22 11:32:03 2024 by rev. 669887