[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lightning] Thread-local data?
From: |
Paulo César Pereira de Andrade |
Subject: |
Re: [Lightning] Thread-local data? |
Date: |
Fri, 23 Sep 2016 12:33:31 -0300 |
2016-09-23 12:17 GMT-03:00 Sandro Magi <address@hidden>:
> An example is accessing errno to integrate with C error handling.
Not portable, but at least for Linux x86_64 you can get the
address of errno (that will be different for different threads); this
way you can avoid a function call, and likely scratch registers
being clobbered.
> Sandro
Thanks,
Paulo