summaryrefslogtreecommitdiff
path: root/databases/firebird-devel/files/patch-src::common::classes::locks.h
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2005-04-11 19:25:44 +0000
committerThierry Thomas <thierry@FreeBSD.org>2005-04-11 19:25:44 +0000
commit494ceff9706c8662d7b04f06e383de09b3004195 (patch)
treed2b95734ea806ca421d523eeda50a253812d78a5 /databases/firebird-devel/files/patch-src::common::classes::locks.h
parent- Update to 2.3-20050404 (diff)
- Update to 20050327 (2.0-alpha1);
- Take maintainership; - Mark BROKEN on FreeBSD-4.x. Since I'm there, use the standard build mechanism. Note: this port is not yet packageable; the new maintainer will take care of this problem. PR: ports/79310 Submitted by: Renato Botelho
Notes
Notes: svn path=/head/; revision=133066
Diffstat (limited to 'databases/firebird-devel/files/patch-src::common::classes::locks.h')
-rw-r--r--databases/firebird-devel/files/patch-src::common::classes::locks.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/databases/firebird-devel/files/patch-src::common::classes::locks.h b/databases/firebird-devel/files/patch-src::common::classes::locks.h
deleted file mode 100644
index e2948dd4bbd2..000000000000
--- a/databases/firebird-devel/files/patch-src::common::classes::locks.h
+++ /dev/null
@@ -1,49 +0,0 @@
---- src/common/classes/locks.h.orig Sun Aug 17 14:56:47 2003
-+++ src/common/classes/locks.h Wed Nov 12 11:12:25 2003
-@@ -77,7 +77,7 @@
-
- /* Process-local spinlock. Used to manage memory heaps in threaded environment. */
- // Pthreads version of the class
--#ifndef SOLARIS
-+#if !defined(SOLARIS) && !defined(DARWIN) && !defined(FREEBSD)
- class Spinlock {
- private:
- pthread_spinlock_t spinlock;
-@@ -100,6 +100,7 @@
- }
- };
- #else
-+#ifdef SOLARIS
- // Who knows why Solaris 2.6 have not THIS funny spins?
- //The next code is not comlpeted but let me compile //Konstantin
- class Spinlock {
-@@ -123,6 +124,29 @@
- system_call_failed::raise();
- }
- };
-+#else // DARWIN and FREEBSD
-+class Spinlock {
-+private:
-+ pthread_mutex_t mlock;
-+public:
-+ Spinlock() {
-+ if (pthread_mutex_init(&mlock, 0))
-+ system_call_failed::raise();
-+ }
-+ ~Spinlock() {
-+ if (pthread_mutex_destroy(&mlock))
-+ system_call_failed::raise();
-+ }
-+ void enter() {
-+ if (pthread_mutex_lock(&mlock))
-+ system_call_failed::raise();
-+ }
-+ void leave() {
-+ if (pthread_mutex_unlock(&mlock))
-+ system_call_failed::raise();
-+ }
-+};
-+#endif
-
- #endif
- #endif