PhoenixMicroBenchmark  1.0.1
Toolset for function micro-benchmarking
Loading...
Searching...
No Matches
pin_thread_to_core.h
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7#ifndef __PIN_THREAD_TO_CORE_H__
8#define __PIN_THREAD_TO_CORE_H__
9
10// #include <inttypes.h>
11bool pinThreadToCore();
12
13#define PIN_THREAD_TO_CORE if(!pinThreadToCore())exit(1);
14
15#endif
16
17
18
19
20
21
bool pinThreadToCore()
Pins the current thread to the current core.