Skip to content

StickyLock cosmetics#262

Merged
masci merged 2 commits intomasterfrom
massi/stickylock
May 22, 2017
Merged

StickyLock cosmetics#262
masci merged 2 commits intomasterfrom
massi/stickylock

Conversation

@masci
Copy link
Copy Markdown
Contributor

@masci masci commented May 19, 2017

What does this PR do?

The usage of StickyLock is still very prone to error, the PR contains two minor details to slightly improve the coding conventions that at the moment are the only way to enforce a safe GIL handling:

  1. stickyLock is now unexported, was never meant to be used outside py
  2. removed the locking from findSubclassOf, meaning you have to do that manually before calling that function. This is coherent with the rest of the code where Exported methods take care of locking while unexported utility functions require the caller to do that.

Motivation

Consistency, even if the lack of a mechanism to enforce lock safety is still an issue.

@masci
Copy link
Copy Markdown
Contributor Author

masci commented May 19, 2017

Holding the fire until #259 is merged, will rebase on top of that

@masci masci force-pushed the massi/stickylock branch from 1848da2 to e69972a Compare May 22, 2017 11:26
@masci masci merged commit 38cfb3a into master May 22, 2017
@masci masci deleted the massi/stickylock branch May 22, 2017 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants