From: marek.vavrusa@nic.cz (Marek Vavruša)
Subject: [lttng-dev] liburcu patch for compilers without __thread support
Date: Mon, 30 Jan 2012 16:59:36 +0100 [thread overview]
Message-ID: <CACgotORuGNQca0VpLg-AE6Qxyv9-o+QQRQKwtajkfC3BjGODBA@mail.gmail.com> (raw)
Hello,
we're using liburcu for our DNS server. It's really clever, but we
needed to get it running under NetBSD/OpenBSD and OS X.
Since compilers on those platform don't have support for __thread
keyword, I have made a patch that detects such a compiler
and uses compatibility implementation with
pthread_getspecific()/pthread_setspecific(). I have attempted to make
it as least intrusive
as possible. TLS variables are now declared/defined with a set of
macros in urcu/tls-compat.h
The patch is against the latest release tag v0.6.7 (git format-patch),
but should work with latest git head save for configure.ac
Please let me know what you think and how could we incorporate it to upstream.
Cheers,
Marek
--
Marek Vavru?a Knot DNS
CZ.NIC Labs http://www.knot-dns.cz
-------------------------------------------
Americk? 23, 120 00 Praha 2, Czech Republic
WWW: http://labs.nic.cz http://www.nic.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compat_patch_tls.patch
Type: application/octet-stream
Size: 50056 bytes
Desc: not available
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20120130/02f6dd54/attachment-0001.obj>
next reply other threads:[~2012-01-30 15:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 15:59 Marek Vavruša [this message]
2012-01-31 18:23 ` Mathieu Desnoyers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACgotORuGNQca0VpLg-AE6Qxyv9-o+QQRQKwtajkfC3BjGODBA@mail.gmail.com \
--to=marek.vavrusa@nic.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox