examples/msg/io-remote/io-remote
examples/msg/io-storage/io-storage
examples/msg/platform-failures/platform-failures
+examples/msg/process-create/process-create
examples/msg/process-kill/process-kill
+examples/msg/process-join/process-join
+examples/msg/process-migration/process-migration
+examples/msg/process-startkilltime/process-startkilltime
+examples/msg/process-suspend/process-suspend
examples/msg/app-masterworker/app-masterworker
examples/msg/mc/bugged1
examples/msg/mc/bugged1_liveness
examples/msg/mc/test/snapshot_comparison3
examples/msg/mc/test/snapshot_comparison4
examples/msg/mc/test/snapshot_comparison5
-examples/msg/process-migration/process-migration
examples/msg/ms.trace
examples/msg/network-ns3/network-ns3
examples/msg/app-pmm/app-pmm
examples/msg/app-pingpong/app-pingpong
examples/msg/maestro-set/maestro-set
examples/msg/simulation.trace
-examples/msg/process-create/process-create
-examples/msg/process-startkilltime/process-startkilltime
-examples/msg/process-suspend/process-suspend
examples/msg/app-token-ring/app-token-ring
examples/msg/trace-categories/trace-categories
examples/msg/trace-route-user-variables/trace-route-user-variables
teshsuite/msg/host_on_off_wait/host_on_off_wait
teshsuite/msg/listen_async/listen_async
teshsuite/msg/pid/pid
-teshsuite/msg/process_join/process_join
teshsuite/msg/process/process
teshsuite/msg/storage_client_server/storage_client_server
teshsuite/msg/task_destroy_cancel/task_destroy_cancel
foreach(x actions-comm actions-storage app-masterworker app-pingpong app-pmm app-token-ring async-yield async-wait async-waitall
async-waitany cloud-capping cloud-masterworker cloud-migration cloud-simple cloud-two-tasks
dht-chord dht-pastry energy-consumption energy-onoff energy-pstate energy-ptask energy-vm platform-failures
- io-file io-remote io-storage task-priority process-create process-daemon process-kill process-migration process-suspend
+ io-file io-remote io-storage task-priority
+ process-create process-daemon process-join process-kill process-migration process-suspend
platform-properties process-startkilltime synchro-semaphore trace-categories
trace-route-user-variables trace-link-user-variables trace-masterworker trace-platform
trace-process-migration trace-host-user-variables)
foreach(x actions-comm actions-storage app-bittorrent app-chainsend app-masterworker app-pingpong app-token-ring
async-yield async-wait async-waitall async-waitany cloud-capping cloud-masterworker cloud-migration cloud-simple
cloud-two-tasks dht-chord dht-pastry dht-kademlia platform-failures io-file io-remote io-storage task-priority
- process-create process-daemon process-kill process-migration process-suspend platform-properties synchro-semaphore
- process-startkilltime)
+ process-create process-daemon process-join process-kill process-migration process-startkilltime process-suspend
+ platform-properties synchro-semaphore)
ADD_TESH_FACTORIES(msg-${x} "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/${x} ${x}.tesh)
endforeach()
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
-static int slave(int argc, char *argv[])
+static int slave(int argc, char* argv[])
{
XBT_INFO("Slave started");
MSG_process_sleep(3);
return 0;
}
-static int master(int argc, char *argv[])
+static int master(int argc, char* argv[])
{
msg_process_t process;
XBT_INFO("Start slave");
- process = MSG_process_create("slave from master", slave, NULL, MSG_host_self());
+ process = MSG_process_create("slave from master", slave, NULL, MSG_host_self());
XBT_INFO("Join the slave (timeout 2)");
MSG_process_join(process, 2);
XBT_INFO("Start slave");
- process = MSG_process_create("slave from master", slave, NULL, MSG_host_self());
+ process = MSG_process_create("slave from master", slave, NULL, MSG_host_self());
XBT_INFO("Join the slave (timeout 4)");
MSG_process_join(process, 4);
XBT_INFO("Start slave");
- process = MSG_process_create("slave from master", slave, NULL, MSG_host_self());
+ process = MSG_process_create("slave from master", slave, NULL, MSG_host_self());
XBT_INFO("Join the slave (timeout 2)");
MSG_process_join(process, 2);
return 0;
}
-int main(int argc, char *argv[])
+int main(int argc, char* argv[])
{
msg_error_t res;
-$ ./process_join$EXEEXT ${srcdir:=.}/../../../examples/platforms/small_platform.xml
+$ ./process-join$EXEEXT ${srcdir:=.}/small_platform.xml
> [Tremblay:master:(1) 0.000000] [msg_test/INFO] Start slave
> [Tremblay:slave from master:(2) 0.000000] [msg_test/INFO] Slave started
> [Tremblay:master:(1) 0.000000] [msg_test/INFO] Join the slave (timeout 2)
foreach(x concurrent_rw get_sender host_on_off host_on_off_recv host_on_off_processes host_on_off_wait listen_async pid
- process process_join storage_client_server trace_integration)
+ process storage_client_server trace_integration)
add_executable (${x} ${x}/${x}.c)
target_link_libraries(${x} simgrid)
set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
${CMAKE_CURRENT_SOURCE_DIR}/trace_integration/test-hbp2.5-hbp1.5.xml PARENT_SCOPE)
foreach(x concurrent_rw get_sender host_on_off host_on_off_processes host_on_off_recv host_on_off_wait listen_async pid
- process process_join storage_client_server task_destroy_cancel trace_integration)
+ process storage_client_server task_destroy_cancel trace_integration)
ADD_TESH_FACTORIES(tesh-msg-${x} "thread;boost;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/${x} --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/${x} ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/${x}/${x}.tesh)
endforeach()