mirror of https://github.com/eclipse/paho.mqtt.c
Add volatile to count, to try to get multi-thread test working properly
This commit is contained in:
parent
8877a08827
commit
7c03c4adb7
|
|
@ -495,7 +495,7 @@ Test2: multiple client objects used from multiple threads
|
|||
|
||||
*********************************************************************/
|
||||
volatile int test2_arrivedcount = 0;
|
||||
int test2_deliveryCompleted = 0;
|
||||
volatile int test2_deliveryCompleted = 0;
|
||||
MQTTClient_message test2_pubmsg = MQTTClient_message_initializer;
|
||||
|
||||
void test2_deliveryComplete(void* context, MQTTClient_deliveryToken dt)
|
||||
|
|
|
|||
Loading…
Reference in New Issue