Boost logo

Boost-Commit :

From: xushiweizh_at_[hidden]
Date: 2008-05-25 20:47:28


Author: xushiwei
Date: 2008-05-25 20:47:28 EDT (Sun, 25 May 2008)
New Revision: 45756
URL: http://svn.boost.org/trac/boost/changeset/45756

Log:
gc_alloc.cpp
Added:
   sandbox/memory/libs/memory/src/gc_alloc.cpp (contents, props changed)

Added: sandbox/memory/libs/memory/src/gc_alloc.cpp
==============================================================================
--- (empty file)
+++ sandbox/memory/libs/memory/src/gc_alloc.cpp 2008-05-25 20:47:28 EDT (Sun, 25 May 2008)
@@ -0,0 +1,39 @@
+//
+// boost/memory/block_pool.cpp
+//
+// Copyright (c) 2004 - 2008 xushiwei (xushiweizh_at_[hidden])
+//
+// 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)
+//
+// See http://www.boost.org/libs/memory/index.htm for documentation.
+//
+#include "stdafx.h"
+#include <boost/memory/tls_gc_alloc.hpp>
+
+// -------------------------------------------------------------------------
+
+using namespace NS_BOOST_MEMORY;
+
+tls_gc_alloc_t g_tls_gcAlloc;
+
+STDAPI_(tls_gc_alloc_t*) _boost_TlsGcAlloc()
+{
+ return &g_tls_gcAlloc;
+}
+
+// -------------------------------------------------------------------------
+// class tls_gc_alloc_init
+
+class tls_gc_alloc_init
+{
+public:
+ tls_gc_alloc_init() { g_tls_gcAlloc.init(); }
+ ~tls_gc_alloc_init() { g_tls_gcAlloc.term(); }
+};
+
+tls_gc_alloc_init g_tls_gcAllocInit;
+
+// -------------------------------------------------------------------------
+// $Log: $


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk