Skip to content

Commit

Permalink
use pthread_mutexattr_destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
Constellation committed Dec 7, 2011
1 parent 65a9dad commit 1b4a189
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iv/thread_posix.h
Expand Up @@ -22,6 +22,8 @@ class PosixMutex : private Noncopyable<> {
assert(result == 0);
result = pthread_mutex_init(&mutex_, &attrs);
assert(result == 0);
result = pthread_mutexattr_destroy(&attrs);
assert(result == 0);
ignore_unused_variable_warning(result);
}

Expand Down

0 comments on commit 1b4a189

Please sign in to comment.