2017-04-26 07:29:50 -07:00
|
|
|
/**
|
2016-08-31 16:15:15 +01:00
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package com.facebook.jni;
|
|
|
|
|
2017-04-26 07:29:50 -07:00
|
|
|
import com.facebook.jni.HybridData;
|
2016-08-31 16:15:15 +01:00
|
|
|
import com.facebook.proguard.annotations.DoNotStrip;
|
|
|
|
|
2017-04-26 07:29:50 -07:00
|
|
|
/**
|
|
|
|
* A Runnable that has a native run implementation.
|
|
|
|
*/
|
2016-08-31 16:15:15 +01:00
|
|
|
@DoNotStrip
|
2017-04-26 07:29:50 -07:00
|
|
|
public class NativeRunnable implements Runnable {
|
2016-08-31 16:15:15 +01:00
|
|
|
|
2017-04-26 07:29:50 -07:00
|
|
|
private final HybridData mHybridData;
|
2016-08-31 16:15:15 +01:00
|
|
|
|
2017-04-26 07:29:50 -07:00
|
|
|
private NativeRunnable(HybridData hybridData) {
|
|
|
|
mHybridData = hybridData;
|
2016-08-31 16:15:15 +01:00
|
|
|
}
|
2017-04-26 07:29:50 -07:00
|
|
|
|
|
|
|
public native void run();
|
2016-08-31 16:15:15 +01:00
|
|
|
}
|