A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[simix] Switch to .cpp files
[simgrid.git]
/
src
/
simix
/
smx_context_base.cpp
diff --git
a/src/simix/smx_context_base.c
b/src/simix/smx_context_base.cpp
similarity index 96%
rename from
src/simix/smx_context_base.c
rename to
src/simix/smx_context_base.cpp
index
5dc3a74
..
8b8231a
100644
(file)
--- a/
src/simix/smx_context_base.c
+++ b/
src/simix/smx_context_base.cpp
@@
-1,6
+1,6
@@
/* context_base - Code factorization across context switching implementations */
/* context_base - Code factorization across context switching implementations */
-/* Copyright (c) 2010-201
4
. The SimGrid Team.
+/* Copyright (c) 2010-201
5
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-43,7
+43,7
@@
smx_ctx_base_factory_create_context_sized(size_t size, xbt_main_func_t code,
void_pfn_smxprocess_t cleanup_func,
smx_process_t process)
{
void_pfn_smxprocess_t cleanup_func,
smx_process_t process)
{
- smx_context_t context = xbt_malloc0(size);
+ smx_context_t context =
(smx_context_t)
xbt_malloc0(size);
/* Store the address of the stack in heap to compare it apart of heap comparison */
if(MC_is_active())
/* Store the address of the stack in heap to compare it apart of heap comparison */
if(MC_is_active())