FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/include/threads.h at v0.0.75 · nodegit/nodegit · GitHub
nodegit
nodegit
Repository navigation
Code
Issues
344
(344)
Pull requests
21
(21)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
include
/
threads.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
41 lines (31 loc) · 934 Bytes
Breadcrumbs
nodegit
/
include
/
threads.h
Copy path
File metadata and controls
executable file
·
41 lines (31 loc) · 934 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright 2011, Tim Branyen @tbranyen <tim@tabdeveloper.com>
* @author Michael Robinson @codeofinterest <mike@pagesofinterest.net>
*
* Dual licensed under the MIT and GPL licenses.
*/
#
include
<
v8.h
>
#
include
<
node.h
>
#
include
"
../vendor/libgit2/include/git2.h
"
using
namespace
node
;
using
namespace
v8
;
/*
*
* Class wrapper for libgit2 git_threads_*
*/
class
GitThreads
:
public
ObjectWrap
{
public:
/*
*
* v8::FunctionTemplate used to create Node.js constructor
*/
static
Persistent<Function> constructor_template;
static
void
Initialize
(Handle<v8::Object> target);
/*
*
* Calls git_threads_init synchronously. This is called one time
* on initialization, and is required for libgit2 to run correctly.
*/
static
Handle<Value>
Init
(
const
Arguments& args);
protected:
GitThreads
() {}
~GitThreads
() {}
static
Handle<Value>
New
(
const
Arguments& args);
};
Back
|
FazBrowse Home
|
New Git URL