Hi, 
We are using C library which has some data stored per thread in 
thread-local-storage. 
go application is using this library. as threads terminate, TLS storage was 
freed but now with go application, 
the TLS seems invalid or inconsistent. I mean 2 go routines can be running 
under same pthread, is my understanding correct?
Also looks the thread cleanup handlers, pthread_cleanup_push/pop no longer 
get hit in go application. 


Then i see better approach would be 
- either use go routine specific data and remove TLS from C pthreads . 
- 

Please suggest, is there other better approaches for the existing C 
libraries using TLS (thread local storage) 


Regards,
Pavan

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8bfc7b5c-b896-4d3f-a2c9-7f62942c337b%40googlegroups.com.

Reply via email to