File: my_threaded_lib.c

package info (click to toggle)
python-threadpoolctl 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 356 kB
  • sloc: python: 1,447; sh: 189; ansic: 11; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 249 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int NUM_THREADS = 42;
int* NUM_THREADS_p = &NUM_THREADS;


int mylib_get_num_threads(){
    return *NUM_THREADS_p;
}


void mylib_set_num_threads(int num_threads){
    *NUM_THREADS_p = num_threads;
}


char* mylib_get_version(){
    return "2.0";
}