Marmote Core
The project aims at realizing the prototype of a software environment dedicated to modeling with Markov chains.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations
Functions
taskpopfct.c File Reference

Contains usef-defined task popping functions. More...

#include <stdio.h>
#include <psi.h>

Functions

T_taskpop_task (T_task_pool *taskpool)
 

Detailed Description

Contains usef-defined task popping functions.

Author
Minh Quan HO
Version
1.0
Date
30/07/2012

Function Documentation

T_task* pop_task ( T_task_pool taskpool)
      Task popping function 

pop the task whose id_interval is minimum and priority max

Parameters
taskpooltaskpool where tasks are stored
Returns
T_task* pointer on the choosen task

empty taskpool

look for candidate

now withdraw and return the candidate