/* Context switching within the JVM. */
-/* Copyright (c) 2009-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include <jni.h>
#include "simgrid/simix.h"
-#include "src/simix/smx_private.h"
+#include "src/simix/smx_private.hpp"
#include "xbt/xbt_os_thread.h"
-#include "jmsg.h"
+#include "jmsg.hpp"
namespace simgrid {
namespace kernel {
class JavaContext : public simgrid::kernel::context::Context {
public:
// The java process instance bound with the msg process structure:
- jobject jprocess = nullptr;
+ jobject jprocess_ = nullptr;
// JNI interface pointer associated to this thread:
- JNIEnv *jenv = nullptr;
- xbt_os_thread_t thread = nullptr;
- // Sempahore used to schedule/yield the process:
- xbt_os_sem_t begin = nullptr;
+ JNIEnv* jenv_ = nullptr;
+ xbt_os_thread_t thread_ = nullptr;
+ // Sempahore used to schedule/yield to the process:
+ xbt_os_sem_t begin_ = nullptr;
// Semaphore used to schedule/unschedule the process:
- xbt_os_sem_t end = nullptr;
+ xbt_os_sem_t end_ = nullptr;
friend class JavaContextFactory;
JavaContext(std::function<void()> code,