Remove uneeded locking of os thread in calling local C function
This commit is contained in:
parent
067989fe99
commit
97267d3f6e
3
diff.go
3
diff.go
|
@ -912,9 +912,6 @@ func deltaApplyCallback(_delta *C.git_diff_delta, _payload unsafe.Pointer) C.int
|
||||||
func DefaultApplyOptions() (*ApplyOptions, error) {
|
func DefaultApplyOptions() (*ApplyOptions, error) {
|
||||||
opts := C.git_apply_options{}
|
opts := C.git_apply_options{}
|
||||||
|
|
||||||
runtime.LockOSThread()
|
|
||||||
defer runtime.UnlockOSThread()
|
|
||||||
|
|
||||||
C._go_git_apply_init_options(&opts)
|
C._go_git_apply_init_options(&opts)
|
||||||
|
|
||||||
return applyOptionsFromC(&opts), nil
|
return applyOptionsFromC(&opts), nil
|
||||||
|
|
Loading…
Reference in New Issue