Skip to content

smucs/GranularThreadSafety

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Highly granular thread-safe array

A highly granular thread-safe array I spent a chunk of yesterday creating. Always bugged me somewhat that mutexes lack granularity as far as arrays and matrices are concerned. A fairly simple explanatory test harness/example is attached.

If you're new to template-based programming and are wondering why all of the code is in the .h file, read http://www.parashift.com/c++-faq-lite/templates-defn-vs-decl.html. In C++11 you can use extern template; I assumed most people are still using C++03 thus didn't utilise this.

By Tim Bashford - 11/05/13. Use as you see fit.

About

A highly granular thread-safe array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published