lock.h 564 B

1234567891011121314151617181920212223242526
  1. /*
  2. * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * This is a STUB FILE HEADER used when compiling ESP-IDF to run tests on the host system.
  7. * The header file used normally for ESP-IDF has the same name but is located elsewhere.
  8. */
  9. #pragma once
  10. #include <time.h>
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. typedef int _lock_t;
  15. void _lock_acquire(_lock_t *lock);
  16. void _lock_close(_lock_t *lock);
  17. void _lock_init(_lock_t *lock);
  18. void _lock_release(_lock_t *lock);
  19. #ifdef __cplusplus
  20. }
  21. #endif