Descriptionruntime: make LockOSThread nestable
This change makes calling LockOSThread and UnlockOSThread safe
in library code, which is important when making syscalls that
return pointers to per-thread data. Without this change it is
unsafe to call UnlockOSThread in such cases, since if user
already called LockOSThread then UnlockOSThread would unlock
it unconditionally.
Fixes issue 3775.
Patch Set 1 #Patch Set 2 : diff -r d8bddc63dacc https://code.google.com/p/go/ #Patch Set 3 : diff -r d8bddc63dacc https://code.google.com/p/go/ #Patch Set 4 : diff -r d8bddc63dacc https://code.google.com/p/go/ #Patch Set 5 : diff -r d8bddc63dacc https://code.google.com/p/go/ #Patch Set 6 : diff -r d8bddc63dacc https://code.google.com/p/go/ #
MessagesTotal messages: 13
|