Sunday, April 17, 2011

17-04-11

non copyable

class noncopyable {
public:
noncopyable() {}
noncopyable(const noncopyable&) = delete;
noncopyable operator=(const noncopyable&) = delete;
};

cpp link


pthreads tutorial

futex : normal futexes are special types of locks that in the
noncontended case can be acquired/released from userspace without having
to enter the kernel.

robust futex

futex are tricky

Mutexes and Condition Variables using Futexes