gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r11937: Declare attached inline to p


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11937: Declare attached inline to prevent multiple definitions.
Date: Fri, 12 Feb 2010 13:29:55 +0100
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 11937
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Fri 2010-02-12 13:29:55 +0100
message:
  Declare attached inline to prevent multiple definitions.
modified:
  libbase/SharedMem.h
=== modified file 'libbase/SharedMem.h'
--- a/libbase/SharedMem.h       2010-02-09 14:21:15 +0000
+++ b/libbase/SharedMem.h       2010-02-12 12:29:55 +0000
@@ -130,7 +130,13 @@
 #endif
 };
 
-bool
+/// Check if the SharedMem has been attached.
+//
+/// This only checks whether the attach operation was successful, not whether
+/// the shared memory still exists and is still attached where it was 
+/// initially. It is always possible for other processes to remove it while
+/// Gnash is using it, but there is nothing we can do about this.
+inline bool
 attached(const SharedMem& mem) {
     return (mem.begin());
 }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]