-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target: Allow reuse of a connection once the owning thread is terminated
Once a thread exits, the connection instance it was using can be returned to the pool so it can be reused by another thread. Since there is no per-thread equivalent to atexit, this is achieved by returning the connection to the pool after every top-level method call that uses it directly, so the object the user can get by accessing Target.conn can change after each call to Target method.
- Loading branch information
1 parent
1d6a007
commit 165b87f
Showing
1 changed file
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters