SofiaRomeiro / File-System

0 stars 0 forks source link

Object-Oriented like #16

Open SofiaRomeiro opened 2 years ago

SofiaRomeiro commented 2 years ago

Make mutexes and locks more OOP like to avoid having explicit lock and unlock in operations.c

ruipmfs commented 2 years ago

only rwlocks remaining in operations.c! ISSUE: Do we need to create 2 different functs for mutex and rwlock? Or can we just add a flag to the function so it knows what lock is dealing with?

SofiaRomeiro commented 2 years ago

only rwlocks remaining in operations.c! ISSUE: Do we need to create 2 different functs for mutex and rwlock? Or can we just add a flag to the function so it knows what lock is dealing with?

Flags with ENUM