Change locking API to be more object-oriented #43
Labels
good first issue
Good for newcomers
hacktoberfest
This issue is for Hacktoberfest
no-parallel-programming-knowledge-necessary
No parallel programming knowledge should be required to complete the issue
refactor
Refactor or restructure code to better align with good engineering practices
Milestone
Currently, the locking API is in a weird transition state after merging the
DotMP.Lock
andDotMP.Locking
classes. Right now, the way that locks are used are by instantiating aLock
object, then passing them toDotMP.Lock
static methods.This is not elegant, and locking should be accomplished by calling methods on the
Lock
object. I anticipate this will only be a matter of removing thestatic
keywords from theSet
,Unset
, andTest
methods, altering the methods to work onthis._lock
instead of a passedLock
object, and modifying all associated documentation (including the README).The text was updated successfully, but these errors were encountered: