Sponsored Content
Full Discussion: C++ singleton
Top Forums Programming C++ singleton Post 302710753 by vistastar on Thursday 4th of October 2012 09:27:45 PM
Old 10-04-2012
but if the user use the public function to instantiate a second time, it can also only be detected at run time. Isn't it?
 

3 More Discussions You Might Find Interesting

1. Programming

What is singleton class ?

hello members, What is singleton class in c++ and in which case we will go with singleton class. Thanks & Regards Rajkumar_g (2 Replies)
Discussion started by: rajkumar_g
2 Replies

2. Programming

C++ abstract (singleton) factory implementation...

I want to create an abstract factory template which will allow me to pass in an "ID" for a subclass and return the singleton instance of that class stored in the factory. It'd be easy to adapt for "multi-ton", but for its present use this isn't necessary. The requirements are: - I don't want... (2 Replies)
Discussion started by: DreamWarrior
2 Replies

3. UNIX for Beginners Questions & Answers

AIX errpt : ( E7A89C7D Local adapter disabled after unstable singleton for long time )

Medel : 9117-MMC OS: AIX 6.1 Patch level : 6100-07-04-1216 Hacmp version : HACMP v 6.1.0.8 Oracle : 11.2.0.3 RAC Node : 2 node Dear, my one node server has been restarted early this morning, So, i tried to start HA and Oracle database. after that, the follow error appears at the node... (1 Reply)
Discussion started by: tomato00
1 Replies
ost::SharedMemPager(3)					     Library Functions Manual					    ost::SharedMemPager(3)

NAME
ost::SharedMemPager - The shared mempager uses a mutex to protect key access methods. SYNOPSIS
#include <misc.h> Inherits ost::MemPager, and ost::Mutex. Protected Member Functions SharedMemPager (size_t pagesize=4096, const char *name=NULL) Create a mempager mutex pool. void purge (void) Purge the memory pool while locked. void * first (size_t size) Get the first memory page after locking. void * alloc (size_t size) Get the last memory page after locking. Additional Inherited Members Detailed Description The shared mempager uses a mutex to protect key access methods. This class is used when a mempager will be shared by multiple threads. Author: David Sugar dyfet@ostel.com mutex protected memory pager. Constructor &; Destructor Documentation ost::SharedMemPager::SharedMemPager (size_tpagesize = 4096, const char *name = NULL) [protected] Create a mempager mutex pool. Parameters: pagesize page size for allocation. name a name for the pool. Member Function Documentation void* ost::SharedMemPager::alloc (size_tsize) [protected], [virtual] Get the last memory page after locking. Returns: allocated memory space. Parameters: size of request. Reimplemented from ost::MemPager. void* ost::SharedMemPager::first (size_tsize) [protected], [virtual] Get the first memory page after locking. Returns: allocated memory space. Parameters: size of request. Reimplemented from ost::MemPager. void ost::SharedMemPager::purge (void) [protected] Purge the memory pool while locked. Reimplemented from ost::MemPager. Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::SharedMemPager(3)
All times are GMT -4. The time now is 05:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy