dialogs-api-lock.h 267 B

12345678
  1. #pragma once
  2. #define API_LOCK_INIT_LOCKED() osSemaphoreNew(1, 0, NULL);
  3. #define API_LOCK_WAIT_UNTIL_UNLOCK_AND_FREE(_lock) \
  4. osSemaphoreAcquire(_lock, osWaitForever); \
  5. osSemaphoreDelete(_lock);
  6. #define API_LOCK_UNLOCK(_lock) osSemaphoreRelease(_lock);