You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Android implementation of the sensor package need to initialize a ALooper. ALoopers must be accessed from the same OS thread, therefore each operation on the package must be done on a goroutine that is locked to an OS thread.
The current mechanism accepts new messages through a signal channel depending on the signals type, invokes the required functions and sets the return values. It requires each function call to be represented with a different input signal.
This mechanism could be simplified by making the locked goroutine consuming a chan of functions.
typeinOutfunc(donechanstruct{})
m.inOut<-func(donechanstruct{}) {
// do something on the locked goroutine// when done, close done.close(done)
}
The text was updated successfully, but these errors were encountered:
The Android implementation of the sensor package need to initialize a ALooper. ALoopers must be accessed from the same OS thread, therefore each operation on the package must be done on a goroutine that is locked to an OS thread.
The current mechanism accepts new messages through a signal channel depending on the signals type, invokes the required functions and sets the return values. It requires each function call to be represented with a different input signal.
This mechanism could be simplified by making the locked goroutine consuming a chan of functions.
The text was updated successfully, but these errors were encountered: