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
Alternative implementation or parmap with busy waits instead of futexes
[simgrid.git]
/
src
/
simix
/
smx_context_raw.c
diff --git
a/src/simix/smx_context_raw.c
b/src/simix/smx_context_raw.c
index
9a18df8
..
c053cff
100644
(file)
--- a/
src/simix/smx_context_raw.c
+++ b/
src/simix/smx_context_raw.c
@@
-37,7
+37,7
@@
static xbt_os_thread_key_t raw_worker_id_key; /* thread-specific storage for the
static unsigned long raw_process_index = 0; /* index of the next process to run in the
* list of runnable processes */
static unsigned long raw_process_index = 0; /* index of the next process to run in the
* list of runnable processes */
-smx_ctx_raw_t raw_maestro_context;
+s
tatic s
mx_ctx_raw_t raw_maestro_context;
extern raw_stack_t raw_makecontext(char* malloced_stack, int stack_size,
rawctx_entry_point_t entry_point, void* arg);
extern raw_stack_t raw_makecontext(char* malloced_stack, int stack_size,
rawctx_entry_point_t entry_point, void* arg);
@@
-168,7
+168,7
@@
__asm__ (
);
#else
);
#else
-/* If you implement raw context
es for other processors, don't forget to
+/* If you implement raw context
s for other processors, don't forget to
update the definition of HAVE_RAWCTX in buildtools/Cmake/CompleteInFiles.cmake */
raw_stack_t raw_makecontext(char* malloced_stack, int stack_size,
update the definition of HAVE_RAWCTX in buildtools/Cmake/CompleteInFiles.cmake */
raw_stack_t raw_makecontext(char* malloced_stack, int stack_size,
@@
-231,7
+231,7
@@
void SIMIX_ctx_raw_factory_init(smx_context_factory_t *factory)
if (SIMIX_context_is_parallel()) {
#ifdef CONTEXT_THREADS
int nthreads = SIMIX_context_get_nthreads();
if (SIMIX_context_is_parallel()) {
#ifdef CONTEXT_THREADS
int nthreads = SIMIX_context_get_nthreads();
- raw_parmap = xbt_parmap_new(nthreads);
+ raw_parmap = xbt_parmap_new(nthreads
, SIMIX_context_get_parallel_mode()
);
raw_workers_stacks = xbt_new(raw_stack_t, nthreads);
xbt_os_thread_key_create(&raw_worker_id_key);
#endif
raw_workers_stacks = xbt_new(raw_stack_t, nthreads);
xbt_os_thread_key_create(&raw_worker_id_key);
#endif
@@
-327,7
+327,6
@@
smx_ctx_raw_create_context(xbt_main_func_t code, int argc, char **argv,
*/
static void smx_ctx_raw_free(smx_context_t context)
{
*/
static void smx_ctx_raw_free(smx_context_t context)
{
-
if (context) {
#ifdef HAVE_VALGRIND_VALGRIND_H
if (context) {
#ifdef HAVE_VALGRIND_VALGRIND_H