The mb class implements memory barriers. A memory barrier is a low level construct that is sometimes useful for guaranteeing the order in which memory operations take place, even when multiple microprocessors are involved. In most cases, mutexes are the best choice for synchronizing data access, but sometimes it is convenient (and critical to performance) to use memory barriers where weaker access constraints are adequate.