sangmichaelxie / priority_mutex

A C++ mutex class that can give threads passed "with priority" first shot at the scheduler. Inspired by a test question to be as lean of an implementation as possible. Supposedly possible without the atomic<int> or any additional mutexes, cv's, etc. I would like to know if that is possible! Test harness is provided.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sangmichaelxie/priority_mutex Stargazers