15 #ifndef __included_jvpp_common_h__ 16 #define __included_jvpp_common_h__ 46 return __sync_add_and_fetch(&jm->
context_id, 1);
50 while (__sync_lock_test_and_set(&jm->
lock, 1))
64 void call_on_error(
const char* callName,
int contextId,
int retval,
65 jclass callbackClass, jobject callbackObject,
66 jclass callbackExceptionClass);
static_always_inline u32 vppjni_get_context_id(jvpp_main_t *jm)
#define static_always_inline
u32 get_message_id(JNIEnv *env, const char *key)
Retrieves message id based on message name and crc (key format: name_crc).
void call_on_error(const char *callName, int contextId, int retval, jclass callbackClass, jobject callbackObject, jclass callbackExceptionClass)
Calls onError callback on callbackObject reference.
static_always_inline void vppjni_lock(jvpp_main_t *jm, u32 tag)
static_always_inline void vppjni_unlock(jvpp_main_t *jm)
struct _svm_queue svm_queue_t
#define CLIB_MEMORY_BARRIER()
svm_queue_t * vl_input_queue