Файловый менеджер - Редактировать - /var/www/html/testtls.zip
Ðазад
PK ! �,��� � tls_test.gonu �[��� // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cgotlstest import "testing" func TestTLS(t *testing.T) { testTLS(t) } PK ! �W5� tls_none.gonu �[��� // Copyright 2023 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !cgo package cgotlstest import "testing" func testTLS(t *testing.T) { t.Skip("cgo not supported") } PK ! ;o� � tls.gonu �[��� // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cgotlstest // extern const char *checkTLS(); // extern void setTLS(int); // extern int getTLS(); import "C" import ( "runtime" "testing" ) func testTLS(t *testing.T) { if skip := C.checkTLS(); skip != nil { t.Skipf("%s", C.GoString(skip)) } runtime.LockOSThread() defer runtime.UnlockOSThread() if val := C.getTLS(); val != 0 { t.Fatalf("at start, C.getTLS() = %#x, want 0", val) } const keyVal = 0x1234 C.setTLS(keyVal) if val := C.getTLS(); val != keyVal { t.Fatalf("at end, C.getTLS() = %#x, want %#x", val, keyVal) } } PK ! '� � tls.cnu �[��� // Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <stddef.h> #if __STDC_VERSION__ >= 201112L && !defined(__STDC_NO_THREADS__) // Mingw seems not to have threads.h, so we use the _Thread_local keyword rather // than the thread_local macro. static _Thread_local int tls; const char * checkTLS() { return NULL; } void setTLS(int v) { tls = v; } int getTLS() { return tls; } #else const char * checkTLS() { return "_Thread_local requires C11 and not __STDC_NO_THREADS__"; } void setTLS(int v) { } int getTLS() { return 0; } #endif PK ! �,��� � tls_test.gonu �[��� PK ! �W5� , tls_none.gonu �[��� PK ! ;o� � z tls.gonu �[��� PK ! '� � { tls.cnu �[��� PK ! E
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка