Skip to content

Commit

Permalink
Merge pull request #138 from ecmwf/fix/allow-singleton-resurrection
Browse files Browse the repository at this point in the history
looks good to me
  • Loading branch information
danovaro authored Jul 17, 2024
2 parents 8d230b1 + ea6f6e3 commit 3d68516
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/eckit/thread/ThreadSingleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ ThreadSingleton<T, A>::~ThreadSingleton() {
T* value = (T*)::pthread_getspecific(key_);
if (value) {
::pthread_key_delete(key_);
once_ = PTHREAD_ONCE_INIT;
delete value;
}
}
Expand Down

0 comments on commit 3d68516

Please sign in to comment.