Kaydet (Commit) 1126a09a authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS uno4 (1.2.92); FILE MERGED

2003/05/16 15:49:24 sb 1.2.92.2: #i13771# Fixed typo.
2003/05/08 12:11:00 kso 1.2.92.1: #i13771# -  fixed and completed sample code.
üst 88a7e54c
......@@ -2,9 +2,9 @@
*
* $RCSfile: instance.hxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: sb $ $Date: 2002-10-28 09:55:07 $
* last change: $Author: vg $ $Date: 2003-05-22 09:32:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
......@@ -103,8 +103,11 @@ namespace {
Code:
#include "rtl/instance.hxx"
#include "osl/getglobalmutex.hxx"
namespace {
struct Init()
struct Init
{
T * operator()()
{
......@@ -139,8 +142,11 @@ namespace {
Code:
#include "rtl/instance.hxx"
#include "osl/getglobalmutex.hxx"
namespace {
struct Init()
struct Init
{
T * operator()()
{
......@@ -177,8 +183,10 @@ namespace {
Code:
#include "rtl/instance.hxx"
namespace {
struct InitInstance()
struct InitInstance
{
T * operator()()
{
......@@ -187,7 +195,7 @@ namespace {
}
};
struct InitGuard()
struct InitGuard
{
SomeMutex * operator()()
{
......@@ -225,8 +233,11 @@ namespace {
Code:
#include "rtl/instance.hxx"
#include "osl/getglobalmutex.hxx"
namespace {
struct InitInstance()
struct InitInstance
{
T * operator()()
{
......@@ -235,7 +246,7 @@ namespace {
}
}
struct InitData()
struct InitData
{
Data const & operator()()
{
......@@ -350,8 +361,11 @@ private:
#if !defined _MSC_VER
template< typename Inst, typename InstCtor,
typename Guard, typename GuardCtor >
Inst * rtl_Instance< Inst, InstCtor, Guard, GuardCtor >::m_pInstance = 0;
typename Guard, typename GuardCtor,
typename Data, typename DataCtor >
Inst *
rtl_Instance< Inst, InstCtor, Guard, GuardCtor, Data, DataCtor >::m_pInstance
= 0;
#endif // _MSC_VER
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment