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

Allow the pool lock to be specialized #41

Merged
merged 4 commits into from May 11, 2015

Conversation

harlowja
Copy link
Contributor

It can be quite useful to allow the lock that the pool
uses to be specified to be something other than the default
threading lock class/type. This can be especially useful when
eventlet (or gevent or other) are used which have there own
special lock type that connects into there event-loop.

It can be quite useful to allow the lock that the pool
uses to be specified to be something other than the default
threading lock class/type. This can be especially useful when
eventlet (or gevent or other) are used which have there own
special lock type that connects into there event-loop.
max_pool_size=None):
max_pool_size=None,
# Allow this to be a different style of lock (eventlet
# lock/semaphore for example, that works with greenthreads).
Copy link
Collaborator

Choose a reason for hiding this comment

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

This type of documentation generally goes in a docblock.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya. I'll add those into a docstring/block on the class.

@cgordon
Copy link
Collaborator

cgordon commented Apr 17, 2015

This is pretty nit-picky, but we've been using the Google style guide for documentation, and I have a mild preference that we stay consistent with that:

https://google-styleguide.googlecode.com/svn/trunk/pyguide.html?showone=Comments#Comments

@cgordon
Copy link
Collaborator

cgordon commented May 11, 2015

Apologies! I lost track of this change, merging now..

cgordon added a commit that referenced this pull request May 11, 2015
Allow the pool lock to be specialized
@cgordon cgordon merged commit bb9e95e into pinterest:master May 11, 2015
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.

None yet

3 participants