File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -138,22 +138,22 @@ inline void lazy_mutex_unsafe_unlock(lazy_mutex_handle &handle) {
138
138
139
139
using recursive_mutex_handle = ::pthread_mutex_t ;
140
140
141
- inline void recursive_mutex_init (mutex_handle &handle, bool checked = false ) {
141
+ inline void recursive_mutex_init (recursive_mutex_handle &handle, bool checked = false ) {
142
142
::pthread_mutexattr_t attr;
143
143
SWIFT_LINUXTHREADS_CHECK (::pthread_mutexattr_init (&attr));
144
144
SWIFT_LINUXTHREADS_CHECK (
145
145
::pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE));
146
146
SWIFT_LINUXTHREADS_CHECK (::pthread_mutex_init (&handle, &attr));
147
147
SWIFT_LINUXTHREADS_CHECK (::pthread_mutexattr_destroy (&attr));
148
148
}
149
- inline void recursive_mutex_destroy (mutex_handle &handle) {
149
+ inline void recursive_mutex_destroy (recursive_mutex_handle &handle) {
150
150
SWIFT_LINUXTHREADS_CHECK (::pthread_mutex_destroy (&handle));
151
151
}
152
152
153
- inline void recursive_mutex_lock (mutex_handle &handle) {
153
+ inline void recursive_mutex_lock (recursive_mutex_handle &handle) {
154
154
SWIFT_LINUXTHREADS_CHECK (::pthread_mutex_lock (&handle));
155
155
}
156
- inline void recursive_mutex_unlock (mutex_handle &handle) {
156
+ inline void recursive_mutex_unlock (recursive_mutex_handle &handle) {
157
157
SWIFT_LINUXTHREADS_CHECK (::pthread_mutex_unlock (&handle));
158
158
}
159
159
Original file line number Diff line number Diff line change @@ -134,22 +134,22 @@ inline void lazy_mutex_unsafe_unlock(lazy_mutex_handle &handle) {
134
134
135
135
using recursive_mutex_handle = ::pthread_mutex_t ;
136
136
137
- inline void recursive_mutex_init (mutex_handle &handle, bool checked = false ) {
137
+ inline void recursive_mutex_init (recursive_mutex_handle &handle, bool checked = false ) {
138
138
::pthread_mutexattr_t attr;
139
139
SWIFT_PTHREADS_CHECK (::pthread_mutexattr_init (&attr));
140
140
SWIFT_PTHREADS_CHECK (
141
141
::pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE));
142
142
SWIFT_PTHREADS_CHECK (::pthread_mutex_init (&handle, &attr));
143
143
SWIFT_PTHREADS_CHECK (::pthread_mutexattr_destroy (&attr));
144
144
}
145
- inline void recursive_mutex_destroy (mutex_handle &handle) {
145
+ inline void recursive_mutex_destroy (recursive_mutex_handle &handle) {
146
146
SWIFT_PTHREADS_CHECK (::pthread_mutex_destroy (&handle));
147
147
}
148
148
149
- inline void recursive_mutex_lock (mutex_handle &handle) {
149
+ inline void recursive_mutex_lock (recursive_mutex_handle &handle) {
150
150
SWIFT_PTHREADS_CHECK (::pthread_mutex_lock (&handle));
151
151
}
152
- inline void recursive_mutex_unlock (mutex_handle &handle) {
152
+ inline void recursive_mutex_unlock (recursive_mutex_handle &handle) {
153
153
SWIFT_PTHREADS_CHECK (::pthread_mutex_unlock (&handle));
154
154
}
155
155
Original file line number Diff line number Diff line change @@ -244,10 +244,10 @@ using SmallMutex =
244
244
// / A recursive variant of Mutex.
245
245
class RecursiveMutex {
246
246
247
- RecursiveMutex (const Mutex &) = delete ;
248
- RecursiveMutex &operator =(const Mutex &) = delete ;
249
- RecursiveMutex (Mutex &&) = delete ;
250
- RecursiveMutex &operator =(Mutex &&) = delete ;
247
+ RecursiveMutex (const RecursiveMutex &) = delete ;
248
+ RecursiveMutex &operator =(const RecursiveMutex &) = delete ;
249
+ RecursiveMutex (RecursiveMutex &&) = delete ;
250
+ RecursiveMutex &operator =(RecursiveMutex &&) = delete ;
251
251
252
252
public:
253
253
// / Constructs a non-recursive mutex.
You can’t perform that action at this time.
0 commit comments