Sha256: 3207e9c8ef1fd3dd7dc8d986c780e1adeeca5dc6fbdb528ce6531ffc2ca97740

Contents?: true

Size: 1.09 KB

Versions: 10

Compression:

Stored size: 1.09 KB

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
#ifndef INCLUDE_git_threads_h__
#define INCLUDE_git_threads_h__

#include "common.h"

/**
 * @file git2/threads.h
 * @brief Library level thread functions
 * @defgroup git_thread Threading functions
 * @ingroup Git
 * @{
 */
GIT_BEGIN_DECL

/**
 * Init the threading system.
 *
 * If libgit2 has been built with GIT_THREADS
 * on, this function must be called once before
 * any other library functions.
 *
 * If libgit2 has been built without GIT_THREADS
 * support, this function is a no-op.
 *
 * @return 0 or an error code
 */
GIT_EXTERN(int) git_threads_init(void);

/**
 * Shutdown the threading system.
 *
 * If libgit2 has been built with GIT_THREADS
 * on, this function must be called before shutting
 * down the library.
 *
 * If libgit2 has been built without GIT_THREADS
 * support, this function is a no-op.
 */
GIT_EXTERN(void) git_threads_shutdown(void);

/** @} */
GIT_END_DECL
#endif

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rugged-0.21.4 vendor/libgit2/include/git2/threads.h
rugged-0.21.3 vendor/libgit2/include/git2/threads.h
rugged-0.21.2 vendor/libgit2/include/git2/threads.h
rugged-0.21.1b2 vendor/libgit2/include/git2/threads.h
rugged-0.21.1b1 vendor/libgit2/include/git2/threads.h
rugged-0.21.1b0 vendor/libgit2/include/git2/threads.h
rugged-0.21.0 vendor/libgit2/include/git2/threads.h
rugged-0.19.0 vendor/libgit2/include/git2/threads.h
rugged-0.18.0.gh.de28323 vendor/libgit2/include/git2/threads.h
rugged-0.18.0.b1 vendor/libgit2/include/git2/threads.h