Make toasty client thread-safe and implement toasty_wakeup

This commit is contained in:
2025-11-20 03:51:01 +01:00
parent 9b40edb56c
commit b0313ffcf8
7 changed files with 341 additions and 49 deletions
+5
View File
@@ -41,6 +41,11 @@ ToastyFS *toasty_connect(ToastyString addr, uint16_t port);
// Release all resources associated to this client
void toasty_disconnect(ToastyFS *toasty);
// Threads can call this function to wake up a thread blocked
// inside "toasty_wait_result".
// Return 0 on success, -1 on error.
int toasty_wakeup(ToastyFS *toasty);
//////////////////////////////////////////////////////////////////////////////////
// BLOCKING API
//////////////////////////////////////////////////////////////////////////////////