---
name: "ACE_Static_Object_Lock"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Static_Object_Lock"
---

# ACE\_Static\_Object\_Lock(3)

Provide an interface to access a global lock.

## NAME

ACE\_Static\_Object\_Lock -  Provide an interface to access a global lock.

## SYNOPSIS

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

## DESCRIPTION

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.

## AUTHORS

David L. Levine, Matthias Kerkhoff, and Per Andersson

## LIBRARY

ace
