PhoenixThread
1.0.0
Tools to ease parallel programming in C++
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 <stdio.h>
11
#include <stdlib.h>
12
13
// #include <inttypes.h>
14
bool
pinThreadToCore
();
15
16
#define PIN_THREAD_TO_CORE if(!pinThreadToCore())exit(1);
17
18
#endif
19
20
21
22
23
24
pinThreadToCore
bool pinThreadToCore()
Pins the current thread to the current core.
Definition
pin_thread_to_core.cpp:19
src
pin_thread_to_core.h
Generated by
1.13.2