代码搜索:singleton
找到约 4,696 项符合「singleton」的源代码
代码结果 4,696
www.eeworm.com/read/420779/2062872
java singleton2.java
package singleton;
class FileOpe{
public static FileOpe fo = null;
public static synchronized FileOpe getInstance(){//线程同步
if(fo==null){
fo = new FileOpe();
}
return fo;
}
priv
www.eeworm.com/read/402480/2322499
h sds_singleton.h
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
www.eeworm.com/read/382594/2631033
h reactor_singleton.h
/* -*- C++ -*- */
// Reactor_Singleton.h,v 4.3 2003/08/04 03:53:54 dhinton Exp
// ============================================================================
//
// = LIBRARY
// examples
www.eeworm.com/read/375190/2729447
hpp pod_singleton.hpp
// Copyright David Abrahams 2006. Distributed under the Boost
// Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST
www.eeworm.com/read/375190/2730282
hpp trivial_singleton.hpp
// (C) Copyright Gennadiy Rozental 2005-2008.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_
www.eeworm.com/read/375190/2737168
cpp test_singleton.cpp
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// test_singleton.cpp: test implementation of run-time casting of void pointers
// (C) Copyright 2002 Robert Ramey - h
www.eeworm.com/read/101063/15855014
cpp test_singleton.cpp
#include "singleton.h"
using namespace ::Loki;
struct A { ~A(){} };
struct B { ~B(){} };
struct C { ~C(){} };
unsigned int GetLongevity(C*)
{
return 1;
}
int main()
{
type