mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
fix: mutex() noexcept is implicitly deleted
This commit is contained in:
parent
dd29ed5d1f
commit
d74f4c5609
@ -21,12 +21,12 @@ class mutex {
|
|||||||
pthread_mutex_t *mutex_ = nullptr;
|
pthread_mutex_t *mutex_ = nullptr;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
mutex() noexcept = default;
|
mutex() = default;
|
||||||
explicit mutex(char const *name) noexcept {
|
explicit mutex(char const *name) noexcept {
|
||||||
open(name);
|
open(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
~mutex() noexcept = default;
|
~mutex() = default;
|
||||||
|
|
||||||
pthread_mutex_t const *native() const noexcept {
|
pthread_mutex_t const *native() const noexcept {
|
||||||
return mutex_;
|
return mutex_;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user