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
5cb1dc07
Commit
5cb1dc07
authored
Apr 15, 2014
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some more WIN64 defined
parent
3c783a84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
MQTTAsync.c
src/MQTTAsync.c
+4
-4
No files found.
src/MQTTAsync.c
View file @
5cb1dc07
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#define _GNU_SOURCE
/* for pthread_mutexattr_settype */
#define _GNU_SOURCE
/* for pthread_mutexattr_settype */
#include <stdlib.h>
#include <stdlib.h>
#if !defined(WIN32)
#if !defined(WIN32)
&& !defined(WIN64)
#include <sys/time.h>
#include <sys/time.h>
#endif
#endif
...
@@ -730,7 +730,7 @@ int MQTTAsync_addCommand(MQTTAsync_queuedCommand* command, int command_size)
...
@@ -730,7 +730,7 @@ int MQTTAsync_addCommand(MQTTAsync_queuedCommand* command, int command_size)
#endif
#endif
}
}
MQTTAsync_unlock_mutex
(
mqttcommand_mutex
);
MQTTAsync_unlock_mutex
(
mqttcommand_mutex
);
#if !defined(WIN32)
#if !defined(WIN32)
&& !defined(WIN64)
Thread_signal_cond
(
send_cond
);
Thread_signal_cond
(
send_cond
);
#else
#else
if
(
!
Thread_check_sem
(
send_sem
))
if
(
!
Thread_check_sem
(
send_sem
))
...
@@ -1224,7 +1224,7 @@ thread_return_type WINAPI MQTTAsync_sendThread(void* n)
...
@@ -1224,7 +1224,7 @@ thread_return_type WINAPI MQTTAsync_sendThread(void* n)
while
(
commands
->
count
>
0
)
while
(
commands
->
count
>
0
)
MQTTAsync_processCommand
();
MQTTAsync_processCommand
();
#if !defined(WIN32)
#if !defined(WIN32)
&& !defined(WIN64)
/*rc =*/
Thread_wait_cond
(
send_cond
,
1
);
/*rc =*/
Thread_wait_cond
(
send_cond
,
1
);
#else
#else
/*rc =*/
Thread_wait_sem
(
send_sem
,
1000
);
/*rc =*/
Thread_wait_sem
(
send_sem
,
1000
);
...
@@ -1594,7 +1594,7 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n)
...
@@ -1594,7 +1594,7 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n)
}
}
receiveThread_state
=
STOPPED
;
receiveThread_state
=
STOPPED
;
MQTTAsync_unlock_mutex
(
mqttasync_mutex
);
MQTTAsync_unlock_mutex
(
mqttasync_mutex
);
#if !defined(WIN32)
#if !defined(WIN32)
|| !defined(WIN64)
if
(
sendThread_state
!=
STOPPED
)
if
(
sendThread_state
!=
STOPPED
)
Thread_signal_cond
(
send_cond
);
Thread_signal_cond
(
send_cond
);
#else
#else
...
...
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