ACE_Static_Object_Lock(3)

ACE_Static_Object_Lock3

Provide an interface to access a global lock.

Usage

#include <ace/Object_Manager.h>
class ACE_Static_Object_Lock
{
  public:
    static ACE_Recursive_Thread_Mutex *instance (void);
    static void cleanup_lock (void);
};

Overview

This class is used to serialize the creation of static singleton objects. It really isn't needed any more, because anyone can access ACE_STATIC_OBJECT_LOCK directly. But, it is retained for backward compatibility.

Public members

static ACE_Recursive_Thread_Mutex *instance (void);

Static lock access point.

static void cleanup_lock (void);

For use only by ACE_Object_Manager to clean up lock if it what dynamically allocated.

Library

ace

Authors

David L. Levine, Matthias Kerkhoff, and Per Andersson

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.