Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
56ea3848
Commit
56ea3848
authored
Oct 10, 2013
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging
parent
da7aaa9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
Thread.c
src/Thread.c
+13
-2
No files found.
src/Thread.c
View file @
56ea3848
...
...
@@ -117,7 +117,10 @@ int Thread_lock_mutex(mutex_type mutex)
printf
(
"mutex owner != 0, %p
\n
"
,
mutex
);
StackTrace_printStack
(
stdout
);
}
if
((
rc
=
pthread_mutex_lock
(
mutex
))
==
0
)
rc
=
pthread_mutex_lock
(
mutex
);
if
(
rc
!=
0
)
printf
(
"rc from mutex_lock was %d
\n
"
,
rc
);
//if ((rc = pthread_mutex_lock(mutex)) == 0)
#endif
rc
=
0
;
...
...
@@ -138,7 +141,15 @@ int Thread_unlock_mutex(mutex_type mutex)
#if defined(WIN32)
if
(
ReleaseMutex
(
mutex
)
!=
0
)
#else
if
((
rc
=
pthread_mutex_unlock
(
mutex
))
==
0
)
if
(
mutex
->
__data
.
__owner
==
0
)
{
printf
(
"thread_unlock: mutex owner == 0, %p
\n
"
,
mutex
);
StackTrace_printStack
(
stdout
);
}
rc
=
pthread_mutex_unlock
(
mutex
);
if
(
rc
!=
0
)
printf
(
"rc from mutex_unlock was %d
\n
"
,
rc
);
//if ((rc = pthread_mutex_unlock(mutex)) == 0)
#endif
rc
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment