evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / se / seq24 / mutex_no_nameclash.patch
blobdd82b1b0e09f2b892a0149633cc4c5e601d656eb
1 --- a/src/mutex.cpp
2 +++ b/src/mutex.cpp
3 @@ -20,23 +20,23 @@
5 #include "mutex.h"
7 -const pthread_mutex_t mutex::recmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
8 +const pthread_mutex_t mutex_no_nameclash::recmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
9 const pthread_cond_t condition_var::cond = PTHREAD_COND_INITIALIZER;
11 -mutex::mutex( )
12 +mutex_no_nameclash::mutex_no_nameclash( )
14 m_mutex_lock = recmutex;
17 void
18 -mutex::lock( )
19 +mutex_no_nameclash::lock( )
21 pthread_mutex_lock( &m_mutex_lock );
25 void
26 -mutex::unlock( )
27 +mutex_no_nameclash::unlock( )
29 pthread_mutex_unlock( &m_mutex_lock );
31 --- a/src/mutex.h
32 +++ b/src/mutex.h
33 @@ -24,7 +24,7 @@
35 #include <pthread.h>
37 -class mutex {
38 +class mutex_no_nameclash {
40 private:
42 @@ -37,14 +37,14 @@
44 public:
46 - mutex();
47 + mutex_no_nameclash();
49 void lock();
50 void unlock();
54 -class condition_var : public mutex {
55 +class condition_var : public mutex_no_nameclash {
57 private: