added useful log messages

This commit is contained in:
cozis
2023-05-17 12:10:43 +02:00
parent b63fb7df6c
commit a5b5cf4567
5 changed files with 34 additions and 5 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
#endif
#ifdef MICROTCP_BACKGROUND_THREAD
#define LOCK_WHEN_THREADED(mtcp) do { mtx_lock(&(mtcp)->lock); } while (0);
#define LOCK_WHEN_THREADED(mtcp) do { mtx_lock(&(mtcp)->lock); } while (0);
#define UNLOCK_WHEN_THREADED(mtcp) do { mtx_unlock(&(mtcp)->lock); } while (0);
#else
#define LOCK_WHEN_THREADED(mtcp) do { (void) (mtcp); } while (0);