flang-compiler / f18

F18 is a front-end for Fortran intended to replace the existing front-end in the Flang compiler
230 stars 48 forks source link

Use std::mutex instead of pthreads #1006

Closed isuruf closed 4 years ago

isuruf commented 4 years ago

Fixes https://github.com/flang-compiler/f18/issues/1005

DavidTruby commented 4 years ago

Can we change this code to use llvm::SmartMutex or std::mutex instead and avoid the platform specific code here?

isuruf commented 4 years ago

Since this is the runtime, LLVM functions are not desirable as mentioned in the issue. I can try using std::mutex.

isuruf commented 4 years ago

Thanks