diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-12-06 02:58:28 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-12-06 03:03:26 +0100 |
| commit | 520a0425c736c7d584d21d073b08a8735dd2464f (patch) | |
| tree | af5f03129117c9179dcdf71c11c867116fb24ab5 /diff.go | |
| parent | 8c631b0c25c8de616afa2fd89378299c9d9a1439 (diff) | |
Add the newer missing thread-locking instances
Diffstat (limited to 'diff.go')
| -rw-r--r-- | diff.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -179,6 +179,9 @@ func (diff *Diff) FindSimilar(opts *DiffFindOptions) error { } } + runtime.LockOSThread() + defer runtime.UnlockOSThread() + ecode := C.git_diff_find_similar(diff.ptr, copts) if ecode < 0 { return MakeGitError(ecode) @@ -404,6 +407,10 @@ type DiffFindOptions struct { func DefaultDiffFindOptions() (DiffFindOptions, error) { opts := C.git_diff_find_options{} + + runtime.LockOSThread() + defer runtime.UnlockOSThread() + ecode := C.git_diff_find_init_options(&opts, C.GIT_DIFF_FIND_OPTIONS_VERSION) if ecode < 0 { return DiffFindOptions{}, MakeGitError(ecode) |
