Boost logo

Boost :

Subject: [boost] [thread?] code for binding/unbinding current thread to a processor
From: k-oli_at_[hidden]
Date: 2008-11-18 05:20:49


Hello,

I've uploaded code to boost vault which allows to bind/unbind current thread to a processor.

boost::this_thread::bind_to_processor( unsigned int n); // thread gets bound to processor n
boost::this_thread::bind_to_any_processor(); // thread can be scheduled to all available processors

platforms: Windows, Linux, Solaris, HP/UX, AIX, IRIX

best regards,
Oliver

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk