pthread_cancel.h 352 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2022, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <sys/cdefs.h>
  8. #include <sys/types.h>
  9. __BEGIN_DECLS
  10. // This is our hook for cancellation points.
  11. #ifdef _DYNAMIC_LOADER
  12. inline void __pthread_maybe_cancel(void)
  13. {
  14. }
  15. #else
  16. void __pthread_maybe_cancel(void);
  17. #endif
  18. __END_DECLS