FAQ
Some external libraries need runtime.LockOSThread() to work.

I use a library written in C with cgo, and it doesn't crash so far.
But I am not sure that it doesn't contain somewhere some hidden internal
per-thread state.

During my tests, I would like to force an OS thread switch before calling
each function of this library, to detect more easily such problem.

Is there a way to do this ?

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedDec 5, '14 at 4:08p
activeDec 5, '14 at 4:24p
posts2
users2
websitegolang.org

2 users in discussion

Dmitry Vyukov: 1 post Nicolas riesch: 1 post

People

Translate

site design / logo © 2021 Grokbase