Skip to content

Commit bc377cb

Browse files
Merge branch 'iss-46' into develop
2 parents dead7c2 + 129cb88 commit bc377cb

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

include/pthread/exceptions.hpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,7 @@ namespace pthread {
3030
* @param message error message
3131
* @param pthread_errno a pthread function return code.
3232
*/
33-
// pthread_exception( const char *message, const int pthread_errno = 0 );
34-
35-
/**
36-
* @param message error message
37-
* @param pthread_errno a pthread function return code.
38-
*/
39-
pthread_exception( const string &message, const int pthread_errno = 0 );
33+
pthread_exception( const string &message, const int pthread_errno = -1 );
4034

4135
virtual ~pthread_exception();
4236

@@ -81,7 +75,7 @@ namespace pthread {
8175
* @param message short description
8276
* @param pthread_errno error returned by the pthread function
8377
*/
84-
mutex_exception( const std::string &message, const int pthread_errno = 0) ;
78+
mutex_exception( const std::string &message, const int pthread_errno = -1) ;
8579

8680
};
8781

@@ -95,7 +89,7 @@ namespace pthread {
9589
* @param message short description
9690
* @param pthread_errno error returned by the pthread function
9791
*/
98-
condition_variable_exception( const string &message, const int pthread_errno = 0);
92+
condition_variable_exception( const string &message, const int pthread_errno = -1);
9993
virtual ~condition_variable_exception(){};
10094
};
10195

@@ -106,7 +100,7 @@ namespace pthread {
106100
* @param message short error description.
107101
* @param pthread_error value return by a function in the pthread library.
108102
*/
109-
thread_exception(const string &message, const int pthread_error = 0);
103+
thread_exception(const string &message, const int pthread_error = -1);
110104
};
111105

112106
} // namespace pthread

0 commit comments

Comments
 (0)