aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/threads.h
AgeCommit message (Collapse)AuthorFilesLines
2018-08-13threads: use static error check mutex initializer if availableAnderson Toshiyuki Sasaki1-1/+1
This changes the condition to use the static error check mutex initializer. If it is not available, use the default static mutex initializer. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-03threads: Add Windows threads implementationAnderson Toshiyuki Sasaki1-0/+7
Added Windows threads implementation based on CriticalSection. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-08-03threads: Automatically call ssh_init on loadAnderson Toshiyuki Sasaki1-0/+25
This makes unnecessary to call ssh_init() when the library is dynamically loaded. Also removes the threads shared library. The used threads implementation is chosen in configuration time, changing the ssh_threads_get_default() depending on the available threads library. Internally, it is expected a threads implementation providing: - void ssh_mutex_lock(void **mutex); - void ssh_mutex_unlock(void **mutex); - struct ssh_threads_callbacks_struct *ssh_threads_get_default(void); and a crypto implementation providing: - int crypto_thread_init(struct ssh_threads_callbacks_struct *user_callbacks); - void crypto_thread_finalize(void); This adds internal threads implementation for pthreads and noop. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-01-23include: Fix the LGPL header.Andreas Schneider1-12/+11
This has been reported by rpmlint: libssh-devel.x86_64: W: incorrect-fsf-address libssh.h
2010-09-12ssh_threads_init is privateAris Adamantiadis1-1/+1
2010-09-12Added initialisation logs for threadingAris Adamantiadis1-1/+2
2010-09-06threads: Build a libssh threading library.Andreas Schneider1-3/+3
2010-09-01Openssl implementation of threading + default impAris Adamantiadis1-10/+3
2010-08-30Begin of a solution for threadingAris Adamantiadis1-0/+38