This ensures that the java bindings are ready before any calls are made by user code. As a bonus, the JNIEnv* is from the Seq class so I believe no tricks are required to find the right class loader. Fixes golang/go#10903. Change-Id: I33b3b39cef6cc2da36e271de882ba8d26610ea34 Reviewed-on: https://go-review.googlesource.com/10296 Reviewed-by: Elias Naur <elias.naur@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
19 lines
503 B
Go
19 lines
503 B
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package java implements the Java language bindings.
|
|
//
|
|
// See the design document (http://golang.org/s/gobind).
|
|
//
|
|
// Currently, this works only for android.
|
|
package java
|
|
|
|
// Init initializes communication with Java.
|
|
// Typically called from the Start callback in app.Run.
|
|
func Init() {
|
|
close(running)
|
|
}
|
|
|
|
var running = make(chan struct{})
|