Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add furtex locks to collections.deque #9

Open
wants to merge 1 commit into
base: gilectomy
Choose a base branch
from

Conversation

tiran
Copy link

@tiran tiran commented Jun 3, 2016

No description provided.

@@ -1814,12 +1977,14 @@ deque_reviter(dequeobject *deque)
it = PyObject_GC_New(dequeiterobject, &dequereviter_type);
if (it == NULL)
return NULL;
deque_lock(deque);
it->b = deque->rightblock;
it->index = deque->rightindex;
Py_INCREF(deque);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to make sure I understand correctly: this Py_INCREF is fine where it is because the call will be holding a reference (so there's no risk of the refcount going to 0), right?

@ericsnowcurrently
Copy link

Other than the issues I've pointed out already, LGTM.

@larryhastings
Copy link
Owner

I apologize for introducing conflicts into your merge request. But the whole platform abstraction was icky cubed.

@larryhastings
Copy link
Owner

FWIW, I'm guessing Christian has walked away from this work too. Unless there are any other suggestions, I'll do my own review and update the patch. (Eventually.)

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.

3 participants