• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2008 Google Inc. All Rights Reserved.
3  * Author: md@google.com (Michael Davidson)
4  */
5 
6 #ifndef THREADS_H_
7 #define THREADS_H_
8 
9 typedef void  *(*thread_func_t)(void *);
10 
11 int create_threads(int num_threads, thread_func_t func, void *arg);
12 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg);
13 void join_threads(void);
14 
15 #endif /* THREADS_H_ */
16