Lock the OS thread when acessing errors #41

Merged
carlosmn merged 1 commits from cmn/threading into master 2013-12-18 09:19:02 -06:00

1 Commits

Author SHA1 Message Date
Carlos Martín Nieto a40bdfd420 Lock the OS thread when acessing errors
The library stores error information in thread-local storage, which
means we need to make sure that the Go runtime doesn't switch OS
threads between the time we call a function and th time we attempt to
retrieve the error information.
2013-12-18 16:18:32 +01:00