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

Make trickle thread-safe #3

Merged
merged 1 commit into from
Dec 2, 2013
Merged

Make trickle thread-safe #3

merged 1 commit into from
Dec 2, 2013

Conversation

lano1106
Copy link
Contributor

thread safety is provided by a big global lock with pthread. There is maybe ways to increase lock
granularity but all I was interested in was to have a safe behavior in a threaded environment.

I have modified the configure.in file so
someone could fall back to the non thread-safe version with the configure script option
--disable-threadsafe

I have improved the AC_CHECK_TYPE macro for in_addr_t. As it was, it was causing a compiling
error on my system.

All the other modifs are from the fact that I did use autoconf 1.69. I had to modernize some parts
of the am/in files to make them work with the latest version.

Signed-off-by: Olivier Langlois [email protected]

thread safety is provided by a big global lock with pthread. There is maybe ways to increase lock
granularity but all I was interested in was to have a safe behavior in a threaded environment.

I have modified the configure.in file so
someone could fall back to the non thread-safe version with the configure script option
--disable-threadsafe

I have improved the AC_CHECK_TYPE macro for in_addr_t. As it was, it was causing a compiling
error on my system.

All the other modifs are from the fact that I did use autoconf 1.69. I had to modernize some parts
of the am/in files to make them work with the latest version.

Signed-off-by: Olivier Langlois <[email protected]>
@mariusae
Copy link
Owner

mariusae commented Dec 2, 2013

LGTM! Thanks.

mariusae added a commit that referenced this pull request Dec 2, 2013
Make trickle thread-safe
@mariusae mariusae merged commit 54b96fb into mariusae:master Dec 2, 2013
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