X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dccf1b41e9c7b5a696f01abceaa2779fe65f154f..a6c64d74cc84ef31accb835f570f990f5c45ecf8:/src/bindings/java/JavaContext.hpp diff --git a/src/bindings/java/JavaContext.hpp b/src/bindings/java/JavaContext.hpp index a1a7ba16e6..6ebaad4b76 100644 --- a/src/bindings/java/JavaContext.hpp +++ b/src/bindings/java/JavaContext.hpp @@ -1,5 +1,6 @@ -/* Copyright (c) 2009-2010, 2012-2014. The SimGrid Team. - * All rights reserved. */ +/* Context switching within the JVM. */ + +/* Copyright (c) 2009-2017. 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. */ @@ -8,17 +9,13 @@ #define SIMGRID_JAVA_JAVA_CONTEXT_HPP #include - #include -#include -#include -#include - +#include "simgrid/simix.h" #include "src/simix/smx_private.h" +#include "xbt/xbt_os_thread.h" #include "jmsg.h" -#include "jmsg_process.h" namespace simgrid { namespace kernel { @@ -38,7 +35,7 @@ public: xbt_os_sem_t begin = nullptr; // Semaphore used to schedule/unschedule the process: xbt_os_sem_t end = nullptr; -public: + friend class JavaContextFactory; JavaContext(std::function code, void_pfn_smxprocess_t cleanup_func,