SimGrid  3.13
Versatile Simulation of Distributed Systems
msg_task.cpp File Reference
#include "msg_private.h"
#include "src/simix/smx_private.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (msg_task, msg,"Logging specific to MSG (task)")
 
msg_task_t MSG_task_create (const char *name, double flop_amount, double message_size, void *data)
 Creates a new msg_task_t. More...
 
msg_task_t MSG_parallel_task_create (const char *name, int host_nb, const msg_host_t *host_list, double *flops_amount, double *bytes_amount, void *data)
 Creates a new msg_task_t (a parallel one....). More...
 
voidMSG_task_get_data (msg_task_t task)
 Return the user data of a msg_task_t. More...
 
void MSG_task_set_data (msg_task_t task, void *data)
 Sets the user data of a msg_task_t. More...
 
void MSG_task_set_copy_callback (void(*callback)(msg_task_t task, msg_process_t sender, msg_process_t receiver))
 Sets a function to be called when a task has just been copied. More...
 
msg_process_t MSG_task_get_sender (msg_task_t task)
 Return the sender of a msg_task_t. More...
 
msg_host_t MSG_task_get_source (msg_task_t task)
 Return the source of a msg_task_t. More...
 
const char * MSG_task_get_name (msg_task_t task)
 Return the name of a msg_task_t. More...
 
void MSG_task_set_name (msg_task_t task, const char *name)
 Sets the name of a msg_task_t. More...
 
msg_error_t MSG_task_destroy (msg_task_t task)
 Destroy a msg_task_t. More...
 
msg_error_t MSG_task_cancel (msg_task_t task)
 Cancel a msg_task_t. More...
 
double MSG_task_get_flops_amount (msg_task_t task)
 Returns the remaining amount of flops needed to execute a task msg_task_t. More...
 
void MSG_task_set_flops_amount (msg_task_t task, double flops_amount)
 set the computation amount needed to process a task msg_task_t. More...
 
void MSG_task_set_bytes_amount (msg_task_t task, double data_size)
 set the amount data attached with a task msg_task_t. More...
 
double MSG_task_get_remaining_communication (msg_task_t task)
 Returns the total amount received by a task msg_task_t. More...
 
double MSG_task_get_bytes_amount (msg_task_t task)
 Returns the size of the data attached to a task msg_task_t. More...
 
void MSG_task_set_priority (msg_task_t task, double priority)
 Changes the priority of a computation task. More...
 
void MSG_task_set_bound (msg_task_t task, double bound)
 Changes the maximum CPU utilization of a computation task. More...
 
void MSG_task_set_affinity (msg_task_t task, msg_host_t host, unsigned long mask)
 Changes the CPU affinity of a computation task. More...
 

Function Documentation

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( msg_task  ,
msg  ,
"Logging specific to MSG (task)"   
)
msg_error_t MSG_task_cancel ( msg_task_t  task)

Cancel a msg_task_t.

Parameters
taskthe task to cancel. If it was executed or transfered, it stops the process that were working on it.