summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/pthread_all.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/pthread_all.go')
-rw-r--r--vendor/modernc.org/libc/pthread_all.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/modernc.org/libc/pthread_all.go b/vendor/modernc.org/libc/pthread_all.go
index 4e2b7f105..2b23b585f 100644
--- a/vendor/modernc.org/libc/pthread_all.go
+++ b/vendor/modernc.org/libc/pthread_all.go
@@ -15,6 +15,9 @@ import (
// int pthread_attr_init(pthread_attr_t *attr);
func Xpthread_attr_init(t *TLS, pAttr uintptr) int32 {
+ if __ccgo_strace {
+ trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2))
+ }
*(*pthread.Pthread_attr_t)(unsafe.Pointer(pAttr)) = pthread.Pthread_attr_t{}
return 0
}
@@ -31,6 +34,9 @@ func Xpthread_attr_init(t *TLS, pAttr uintptr) int32 {
//
// int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr);
func Xpthread_mutex_init(t *TLS, pMutex, pAttr uintptr) int32 {
+ if __ccgo_strace {
+ trc("t=%v pAttr=%v, (%v:)", t, pAttr, origin(2))
+ }
typ := pthread.PTHREAD_MUTEX_DEFAULT
if pAttr != 0 {
typ = int(X__ccgo_pthreadMutexattrGettype(t, pAttr))