Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
Singleton.h
Go to the documentation of this file.
1
/*
2
* This file is part of Project SkyFire https://www.projectskyfire.org.
3
* See LICENSE.md file for Copyright information
4
*/
5
6
#ifndef SKYFIRE_PLATFORM_SINGLETON_H
7
#define SKYFIRE_PLATFORM_SINGLETON_H
8
9
#include "
Platform/Threading.h
"
10
11
namespace
Skyfire
12
{
13
template
<
class
T,
class
Lock = NullMutex>
14
class
Singleton
15
{
16
public
:
17
static
T*
instance
()
18
{
19
static
T
instance
;
20
return
&
instance
;
21
}
22
};
23
}
24
25
#endif
Threading.h
Skyfire::Singleton
Definition
Singleton.h:15
Skyfire::Singleton::instance
static T * instance()
Definition
Singleton.h:17
Skyfire
Definition
AuthPatchTransfer.h:12
src
server
shared
Platform
Singleton.h
Generated on
for Project SkyFire Core by
1.17.0