Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filed doesn't respond to first connection after start.
The setup of the thread specific key is flawed. In essence its setup twice (once via the init_msg() call and once via the pthread_once call in jcr.c). This new code fixes that by: - Setup thread specific data key only once. - Use pthread_key_create_once_np when available. This is a non portable but cleaner implementation of both a pthread_once() and a pthread_key_create(). - For Windows use a workaround around pthread_once() as that seems to hang for unknown reason. Now we use a boolean protected by an mutex to make sure the setup is only done once. Fixes #210: Filed doesn't respond to first connection after start.
- Loading branch information
Marco van Wieringen
committed
Aug 6, 2013
1 parent
1830e72
commit 6cba513
Showing
2 changed files
with
56 additions
and
12 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
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