--- rpl/src/rpl.h 2015/01/08 08:46:22 1.256 +++ rpl/src/rpl.h 2015/01/08 14:29:52 1.257 @@ -525,7 +525,7 @@ union semun __EXTERN__ volatile int routine_recursive; -# define SEM_FORK 0 +# define SEM_FORK 0 # define SEM_QUEUE 1 # define SEM_SIGNALISATION 2 # define SEM_ARRET_SIGNALISATION 3 @@ -1913,6 +1913,21 @@ typedef struct fonction /* -------------------------------------------------------------------------------- + Structure buffer +-------------------------------------------------------------------------------- +*/ + +typedef struct buffer +{ + unsigned char *buffer; + + integer8 longueur_requise; + int classe; +} struct_buffer; + + +/* +-------------------------------------------------------------------------------- Structure processus -------------------------------------------------------------------------------- */ @@ -2408,7 +2423,12 @@ typedef struct processus CACHE2(struct_liste_variables, variables_feuille) CACHE2(struct_variable, variables_variable) CACHE2(struct_arbre_variables *, variables_tableau_noeuds) - CACHE2(struct_arbre_variables_partagees *,variables_tableau_noeuds_partages) + CACHE2(struct_arbre_variables_partagees *, + variables_tableau_noeuds_partages) + + CACHE2(struct_buffer, enveloppes_buffers) + unsigned char ***cache_buffer; + int *pointeur_cache_buffer; } struct_processus; #endif @@ -3439,6 +3459,19 @@ struct_liste_chainee *analyse_rpn(struct /* -------------------------------------------------------------------------------- + Allocateur de buffers à cache +-------------------------------------------------------------------------------- +*/ + +void initialisation_allocateur_buffer(struct_processus *s_etat_processus); +void liberation_allocateur_buffer(struct_processus *s_etat_pocessus); +struct_buffer *allocation_buffer(struct_processus *s_etat_processus, + integer8 longueur); +void liberation_buffer(struct_processus *s_etat_processus, + struct_buffer *buffer); + +/* +-------------------------------------------------------------------------------- Fonctions renvoyant une copie de la structure de description des processus -------------------------------------------------------------------------------- */