brintos

brintos / linux-shallow public Read only

0
0
Text · 468 B · 687ab43 Raw
21 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only */2/*3 * Copyright 2023 Red Hat4 */5 6#ifndef THREAD_UTILS_H7#define THREAD_UTILS_H8 9#include <linux/atomic.h>10 11/* Thread and synchronization utilities */12 13struct thread;14 15void vdo_initialize_threads_mutex(void);16int __must_check vdo_create_thread(void (*thread_function)(void *), void *thread_data,17				   const char *name, struct thread **new_thread);18void vdo_join_threads(struct thread *thread);19 20#endif /* UDS_THREADS_H */21