]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/cgo/gcc_libinit_windows.c
runtime/cgo: store M for C-created thread in pthread key
[gostls13.git] / src / runtime / cgo / gcc_libinit_windows.c
index fdcf027424b6db28aef9dda6ec7620d3aded5dc8..9a8c65ea291ad8c342e448a52bc7e72c69549257 100644 (file)
@@ -30,6 +30,9 @@ static CRITICAL_SECTION runtime_init_cs;
 static HANDLE runtime_init_wait;
 static int runtime_init_done;
 
+uintptr_t x_cgo_pthread_key_created;
+void (*x_crosscall2_ptr)(void (*fn)(void *), void *, int, size_t);
+
 // Pre-initialize the runtime synchronization objects
 void
 _cgo_preinit_init() {
@@ -91,6 +94,12 @@ _cgo_wait_runtime_init_done(void) {
        return 0;
 }
 
+// Should not be used since x_cgo_pthread_key_created will always be zero.
+void x_cgo_bindm(void* dummy) {
+       fprintf(stderr, "unexpected cgo_bindm on Windows\n");
+       abort();
+}
+
 void
 x_cgo_notify_runtime_init_done(void* dummy) {
         _cgo_maybe_run_preinit();