thread-utils.h 468 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright 2023 Red Hat
  4. */
  5. #ifndef THREAD_UTILS_H
  6. #define THREAD_UTILS_H
  7. #include <linux/atomic.h>
  8. /* Thread and synchronization utilities */
  9. struct thread;
  10. void vdo_initialize_threads_mutex(void);
  11. int __must_check vdo_create_thread(void (*thread_function)(void *), void *thread_data,
  12. const char *name, struct thread **new_thread);
  13. void vdo_join_threads(struct thread *thread);
  14. #endif /* UDS_THREADS_H */