Base Module: Steinberg::Singleton Namespace Reference
Author: Steinberg

Base Module VST 3.8 SDK for developing VST plug-in

Loading...
Searching...
No Matches
Typedefs | Functions | Variables
Steinberg::Singleton Namespace Reference

Automatic creation and destruction of singleton instances. More...

## Typedefs
using | ObjectVector = std::vector<FObject**>

## Functions
bool | isTerminated ()
| Returns true when singleton instances were already released.
void | lockRegister ()
| lock and unlock the singleton registration for multi-threading safety
void | unlockRegister ()
void | registerInstance (FObject **o)
| registers an instance (type FObject)

## Variables
ObjectVector * | singletonInstances = nullptr
bool | singletonsTerminated = false
Steinberg::Base::Thread::FLock * | singletonsLock
struct Steinberg::Singleton::Deleter | deleter

## Detailed Description

Automatic creation and destruction of singleton instances.

## Typedef Documentation

## ◆ ObjectVector

using ObjectVector = std::vector<FObject**>

## Function Documentation

## ◆ isTerminated()

bool isTerminated | ( |  | ) |

Returns true when singleton instances were already released.

## ◆ lockRegister()

void lockRegister | ( |  | ) |

lock and unlock the singleton registration for multi-threading safety

## ◆ unlockRegister()

void unlockRegister | ( |  | ) |

## ◆ registerInstance()

void registerInstance | ( | FObject ** | o | ) |

registers an instance (type FObject)

## Variable Documentation

## ◆ singletonInstances

ObjectVector* singletonInstances = nullptr

## ◆ singletonsTerminated

bool singletonsTerminated = false

## ◆ singletonsLock

Steinberg::Base::Thread::FLock* singletonsLock

## ◆ deleter

struct Steinberg::Singleton::Deleter deleter

Empty

Copyright © Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.