X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0f767a4eb0cf070d331e73d9be7d2c2be4f71dd5..8b9f1461e3444561c67dbf0b688d69172b1a8d31:/src/cxx/Task.hpp?ds=sidebyside diff --git a/src/cxx/Task.hpp b/src/cxx/Task.hpp index 4b55a64b39..173f4a73c0 100644 --- a/src/cxx/Task.hpp +++ b/src/cxx/Task.hpp @@ -66,6 +66,57 @@ class Task void send(void) throw(NativeException); + void send(const char* alias) + throw(NativeException); + + void send(double timeout) + throw(NativeException); + + void send(const char* alias, double timeout) + throw(NativeException); + + void sendBounded(double maxRate) + throw(NativeException); + + void sendBounded(const char* alias, double maxRate) + throw(NativeException); + + static Task& receive(void) + throw(NativeException); + + static Task& receive(const char* alias) + throw(NativeException); + + static Task& receive(const char* alias, double timeout) + throw(NativeException); + + static Task& receive(const char* alias, const Host& rHost) + throw(NativeException); + + static Task& receive(const char* alias, double timeout, const Host& rHost) + throw(NativeException); + + static bool listen(void) + throw(NativeException); + + static bool listen(const char* alias) + throw(NativeException); + + static bool listenFrom(void) + throw(NativeException); + + static bool listenFrom(const char* alias) + throw(NativeException); + + + static bool listenFromHost(const Host& rHost) + throw(NativeException); + + static bool listenFromHost(const char* alias, const Host& rHost) + throw(NativeException); + + + private: m_task_t nativeTask;