代码搜索:singleton

找到约 4,696 项符合「singleton」的源代码

代码结果 4,696
www.eeworm.com/read/242657/4549700

py _singleton.py

""" Implements a singleton mixin class """ # The following code was written by Gary Robinson # (grobinson@transpose.com) and placed in the public domain. His # copyright notice is as follows: # By
www.eeworm.com/read/240162/4580783

c singleton.c

// { dg-do run } // This tests two things: // 1. there is an annoying warning. // singleton.C:26: warning: `class singleton' only defines private constructors and has no friends // egcs fails to see
www.eeworm.com/read/233448/4673602

c singleton.c

// { dg-do run } // This tests two things: // 1. there is an annoying warning. // singleton.C:26: warning: `class singleton' only defines private constructors and has no friends // egcs fails to see
www.eeworm.com/read/232657/4696831

java singleton.java

public class Singleton { private static Singleton singleton = null; private Singleton() { System.out.println("已产生对象实例。"); slowdown(); }
www.eeworm.com/read/232657/4696833

java singleton.java

public class Singleton { private static Singleton singleton = null; private Singleton() { System.out.println("已产生对象实例。"); } public static Singleton getInstance() {
www.eeworm.com/read/232657/4696834

java singleton.java

public class Singleton { private static Singleton singleton = null; private Singleton() { System.out.println("已产生对象实例。"); slowdown(); }
www.eeworm.com/read/232657/4696836

java singleton.java

public class Singleton { private static Singleton singleton = new Singleton(); private Singleton() { System.out.println("已产生对象实例。"); } public static Singleton getInstance(
www.eeworm.com/read/221595/4828190

java singleton.java

/* * 项目名称 Pattern * 包名称 com.niufish.pattern.singleton * * 文件名称 Singleton.java * */ package com.niufish.pattern.singleton; /** * 线程安全的单例 * *
www.eeworm.com/read/221464/4828784

hpp singleton.hpp

// Copyright (C) 2001 // Mac Murrett // // Permission to use, copy, modify, distribute and sell this software // and its documentation for any purpose is hereby granted without fee, // provided t
www.eeworm.com/read/221464/4829754

hpp singleton.hpp

// Copyright (C) 2000 Stephen Cleary // // This file can be redistributed and/or modified under the terms found // in "copyright.html" // This software and its documentation is provided "as is" w