[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog cygnal/alloc.cpp
From: |
Markus Gothe |
Subject: |
[Gnash-commit] gnash ChangeLog cygnal/alloc.cpp |
Date: |
Wed, 03 Jan 2007 01:04:50 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Markus Gothe <nihilus> 07/01/03 01:04:50
Modified files:
. : ChangeLog
cygnal : alloc.cpp
Log message:
Throw stuff as declaration i <new>.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2038&r2=1.2039
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/alloc.cpp?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2038
retrieving revision 1.2039
diff -u -b -r1.2038 -r1.2039
--- ChangeLog 3 Jan 2007 00:56:31 -0000 1.2038
+++ ChangeLog 3 Jan 2007 01:04:50 -0000 1.2039
@@ -1,6 +1,7 @@
2002-01-03 Markus Gothe <address@hidden>
* cygnal/http.cpp: removed extra ';'.
+ * cygnal/alloc.cpp: throw stuff.
2002-01-02 Markus Gothe <address@hidden>
Index: cygnal/alloc.cpp
===================================================================
RCS file: /sources/gnash/gnash/cygnal/alloc.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- cygnal/alloc.cpp 17 Dec 2006 02:34:58 -0000 1.1
+++ cygnal/alloc.cpp 3 Jan 2007 01:04:50 -0000 1.2
@@ -27,7 +27,7 @@
// Wrap new in a mutex, because it is not thread safe.
void *
-operator new (std::size_t bytes) {
+operator new (std::size_t bytes) throw (std::bad_alloc) {
boost::mutex::scoped_lock lock(mem_mutex);
void *ptr = malloc (bytes);
return ptr;
@@ -35,7 +35,7 @@
// Wrap delete in a mutex, because it is not thread safe.
void
-operator delete (void* vptr) {
+operator delete (void* vptr) throw () {
boost::mutex::scoped_lock lock(mem_mutex);
free (vptr);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog cygnal/alloc.cpp,
Markus Gothe <=