Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Channel: the S4U name of msg_mailbox_t
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 26 Jul 2015 13:15:52 +0000 (15:15 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 26 Jul 2015 13:15:56 +0000 (15:15 +0200)
commitb59171fdbc29f44390977ab2bddce98ea6bca1e0
treed29e6c98bb6710f1b3da5c8c38c8651c7717cbc4
parentb2b3b2e2cf5e0d24dfbef99f52fc71c5fd90bf6b
Channel: the S4U name of msg_mailbox_t

I hope that the name Channel will be easier to understand than mailbox
(users were often thinking that mailboxes must be attached to a given
host).

The communication primitives do not take a name to a mailbox, but a
mailbox directly. I hate python for raising no warning when I do a
typo on a variable name, and addressing mailboxes by name leads to the
exact same situation.

I would like Channel::byName to return a reference (since they are
created -- in kernel mode -- on need), but I fail to get the syntax
right.

At some point, a C API should be exported, the content of smx_rdv_t
should be integrated into that class, and smx_rdv_t should be killed.
But I want to get a working API to play with first.
buildtools/Cmake/DefinePackages.cmake
examples/s4u/dumb/s4u_test.cpp
include/simgrid/s4u.h
include/simgrid/s4u/channel.hpp [new file with mode: 0644]
include/simgrid/s4u/process.hpp
src/s4u/s4u_channel.cpp [new file with mode: 0644]
src/s4u/s4u_process.cpp