[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11027: don't attempt to work multi
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11027: don't attempt to work multi threaded yet. |
Date: |
Sun, 07 Jun 2009 16:10:39 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 11027
committer: address@hidden
branch nick: trunk
timestamp: Sun 2009-06-07 16:10:39 -0600
message:
don't attempt to work multi threaded yet.
modified:
libbase/GC.h
=== modified file 'libbase/GC.h'
--- a/libbase/GC.h 2009-03-12 03:49:13 +0000
+++ b/libbase/GC.h 2009-06-07 22:10:39 +0000
@@ -28,7 +28,9 @@
#include <string>
#include <algorithm> //for std::find
-#include <boost/thread.hpp>
+#ifndef NDEBUG
+# include <boost/thread.hpp>
+#endif
#include "dsodefs.h"
@@ -225,10 +227,8 @@
///
void addCollectable(const GcResource* item)
{
- boost::thread self;
- // Don't add an object from a thread
- if (self == mainThread) {
#ifndef NDEBUG
+ boost::thread self;
assert(self == mainThread);
assert(item);
assert(! item->isReachable());
@@ -237,7 +237,6 @@
#endif
_resList.push_back(item);
- }
#if GNASH_GC_DEBUG > 1
log_debug(_("GC %p: collectable %p added, num collectables:
%d"), (void*)this, (void*)item, _resList.size());
#endif
@@ -302,10 +301,12 @@
static GC* _singleton;
+#ifndef NDEBUG
/// The thread that initialized the GC is
/// the only one allowed to run the collector
/// and to register collectable objects
boost::thread mainThread;
+#endif
/// Number of resources in collectable list at end of last
/// collect() call.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11027: don't attempt to work multi threaded yet.,
rob <=