mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
add log
This commit is contained in:
parent
b2e48fc138
commit
67972a8c7c
@ -48,8 +48,8 @@ public:
|
||||
|
||||
void close() {
|
||||
if (!valid()) return;
|
||||
w_->close(h_);
|
||||
::printf("close %p\n", h_);
|
||||
w_->close(h_);
|
||||
h_ = waiter_t::invalid();
|
||||
}
|
||||
|
||||
|
||||
@ -75,8 +75,10 @@ public:
|
||||
if (h == invalid()) return;
|
||||
auto w = waiter_cast(h);
|
||||
if (w->counter_.fetch_sub(1, std::memory_order_acq_rel) == 1) {
|
||||
::printf("destroy...\n");
|
||||
::pthread_cond_destroy (&(w->cond_ ));
|
||||
::pthread_mutex_destroy(&(w->mutex_));
|
||||
::printf("destroy end...\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user