xflouris / libpll

Phylogenetic Likelihood Library
GNU Affero General Public License v3.0
26 stars 6 forks source link

thread-safe error messages #57

Closed xflouris closed 8 years ago

xflouris commented 8 years ago

It is okay to have pll_errno as global variable and thread-safe.

Declaring it as

__thread int pll_errno;

instead of

int pll_errno;

creates thread-local storage.

I'll be fixing this one and pll_errmsg when merging dev<->master.

xflouris commented 8 years ago

Both pll_errno and pll_errmsg are now thread-safe variables. Code is now C99 specific.