Skip to content

Commit

Permalink
Refactor of locking to better detect and handle edge cases. Allow par…
Browse files Browse the repository at this point in the history
…tial writes on all packet types.
  • Loading branch information
dgarske committed Nov 4, 2023
1 parent 5dbd4ee commit 76cb326
Show file tree
Hide file tree
Showing 4 changed files with 326 additions and 206 deletions.
2 changes: 1 addition & 1 deletion examples/multithread/multithread.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,11 @@ static void *publish_task(void *param)
MqttClient_CancelMessage(&mqttCtx->client, (MqttObject*)&publish);
}

wm_SemLock(&mtLock);
PRINTF("MQTT Publish: Topic %s, %s (%d)",
publish.topic_name,
MqttClient_ReturnCodeToString(rc), rc);

wm_SemLock(&mtLock);
mNumMsgsDone++;
wm_SemUnlock(&mtLock);

Expand Down
Loading

0 comments on commit 76cb326

Please sign in to comment.