Thread Lock

Saw this in MIT-PITT-RW code.

Was briefly introduced this in CS247 with C++ multithreading. However, I don’t know much about it.