mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
Changed the threads cbks from struct to publ func
This commit is contained in:
@@ -78,7 +78,7 @@ static unsigned long ssh_pthread_thread_id (void){
|
||||
return (unsigned long) pthread_self();
|
||||
}
|
||||
|
||||
struct ssh_threads_callbacks_struct ssh_threads_pthread =
|
||||
static struct ssh_threads_callbacks_struct ssh_threads_pthread =
|
||||
{
|
||||
.type="threads_pthread",
|
||||
.mutex_init=ssh_pthread_mutex_init,
|
||||
@@ -88,4 +88,8 @@ struct ssh_threads_callbacks_struct ssh_threads_pthread =
|
||||
.thread_id=ssh_pthread_thread_id
|
||||
};
|
||||
|
||||
struct ssh_threads_callbacks_struct *ssh_threads_get_pthread(){
|
||||
return &ssh_threads_pthread;
|
||||
}
|
||||
|
||||
#endif /* HAVE_PTHREAD */
|
||||
|
||||
Reference in New Issue
Block a user