Add volatile to count, to try to get multi-thread test working properly

This commit is contained in:
Ian Craggs 2015-11-10 22:37:50 +00:00
parent 8877a08827
commit 7c03c4adb7
1 changed files with 1 additions and 1 deletions

View File

@ -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)