Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-openssl
Commits
3c881b52
Commit
3c881b52
authored
Jul 26, 2018
by
Jeff Wendling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set callback thread id on windows
parent
6ac1e9e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
init_posix.go
init_posix.go
+2
-6
init_windows.go
init_windows.go
+4
-0
No files found.
init_posix.go
View file @
3c881b52
...
@@ -61,12 +61,8 @@ void go_thread_locking_callback(int mode, int n, const char *file,
...
@@ -61,12 +61,8 @@ void go_thread_locking_callback(int mode, int n, const char *file,
}
}
}
}
unsigned long go_thread_id_callback(void)
unsigned long go_thread_id_callback(void) {
{
return (unsigned long)pthread_self();
unsigned long ret;
ret = (unsigned long)pthread_self();
return (ret);
}
}
*/
*/
import
"C"
import
"C"
init_windows.go
View file @
3c881b52
...
@@ -49,5 +49,9 @@ void go_thread_locking_callback(int mode, int n, const char *file,
...
@@ -49,5 +49,9 @@ void go_thread_locking_callback(int mode, int n, const char *file,
LeaveCriticalSection(&goopenssl_locks[n]);
LeaveCriticalSection(&goopenssl_locks[n]);
}
}
}
}
unsigned long go_thread_id_callback(void) {
return (unsigned long)GetCurrentThreadId();
}
*/
*/
import
"C"
import
"C"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment