27 #ifndef Tools_cluster_SshThreadsCallbacks_h
28 #define Tools_cluster_SshThreadsCallbacks_h
30 #include <libssh/callbacks.h>
34 #include <unordered_map>
78 static struct ssh_threads_callbacks_struct *
get();
99 #endif // Tools_cluster_SshThreadsCallbacks_h
static unsigned long thread_id()
Callback for obtaining current thread ID.
static int mutex_init(void **priv)
Mutex initializaton callback.
static std::unordered_map< std::thread::id, int > ms_thread_id_map
Mapping from std::thread::id to unique thread ID number.
static std::mutex ms_thread_id_mutex
Mutex for serializing access to static data members
static unsigned long ms_thread_id_next
Next thread ID.
static int mutex_destroy(void **lock)
Mutex destroy callback.
static int mutex_unlock(void **lock)
Mutex unlock callback.
static struct ssh_threads_callbacks_struct ms_callbacks
libssh callbacks structure
static int mutex_lock(void **lock)
Mutex lock callback.
Thread callbacks for libssh