Commit aa956147 authored by nextime's avatar nextime

Better header and some doc

parent eb9dc275
* Copyright (c) 2015 Franco (nextime) Lanza <>
* pinthread []
* pinthread is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <>.
* compile with :
* $ gcc -Wall -D_GNU_SOURCE -fpic -shared -o pinthread.c -ldl -lpthread
* and test it with :
* LD_PRELOAD=/path/to/ something
* LD_PRELOAD=/path/to/ something
* Environment variables:
* - PINTHREAD_CORE: set to the core number you want to pin to.
* if omitted, it defaults to the result of
* sched_getcpu()
* - PINTHREAD_PNAMES: accept a space separated list of strings,
* if any string match the process name or
* PINTHREAD_PNAMES is empty/omitted, it will
* pin all thread according to PINTHREAD_CORE,
* otherwise it will just call the "real"
* pthread_create without any pinning.
//#include <sys/types.h>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment