WHY DOESN'T mutex WORK HERE? [C++] | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

WHY DOESN'T mutex WORK HERE? [C++]

I tried to set up mutex and it doesn't work. Any clue? https://code.sololearn.com/c2xMUbMr8yIR/?ref=app

15th Feb 2018, 11:34 AM
Lil Taco
Lil Taco - avatar
1 Réponse
+ 3
https://code.sololearn.com/clN62FLG2CY3/?ref=app explanation why it doesn't work is in the code comments: "NOTE: THIS WILL NOT RUN HERE ON SOLOLEARN. Sololearn's compiler doesn't support threading on Windows (which is the OS their server uses). You'll need to copy this code into your own IDE to try it out."
15th Feb 2018, 11:43 AM
Alex
Alex - avatar