ocen-lang / ocen

Statically typed programming language
https://ocen-lang.github.io/autodoc/
79 stars 7 forks source link

Introduced Sync package #6

Closed iadityanath8 closed 2 months ago

iadityanath8 commented 2 months ago

In this pull request i have introduced the sync mechanism as for now Mutex and abstracted pthread api in linux now we can easily lock, unlock as well as we can also set the attribute in the mutex also this package has been inspired by the design of thread module and this package uses that design in sync package also