git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Public interfaces: part 4
[stg.git]
/
include
/
stg
/
locker.h
diff --git
a/include/stg/locker.h
b/include/stg/locker.h
index 964f17cb44d7ccc0a3b037fe4a940ee9552016c0..16b0323f3876c78941fe41c2b7faa310741eb5bb 100644
(file)
--- a/
include/stg/locker.h
+++ b/
include/stg/locker.h
@@
-34,12
+34,12
@@
class STG_LOCKER
{
public:
class STG_LOCKER
{
public:
- STG_LOCKER(pthread_mutex_t& m)
+
explicit
STG_LOCKER(pthread_mutex_t& m)
: mutex(&m)
{
pthread_mutex_lock(mutex);
}
: mutex(&m)
{
pthread_mutex_lock(mutex);
}
- STG_LOCKER(pthread_mutex_t * m)
+
explicit
STG_LOCKER(pthread_mutex_t * m)
: mutex(m)
{
pthread_mutex_lock(mutex);
: mutex(m)
{
pthread_mutex_lock(mutex);