Skip to content
Snippets Groups Projects
Commit 89ef507d authored by Daniela Genius's avatar Daniela Genius
Browse files

nettoyage

parent a4bcb8be
No related branches found
No related tags found
Loading
File deleted
#include "Block0.h"
// Header code defined in the model
// End of header code defined in the model
static uint32_t _val;
#define STATE__START__STATE 0
#define STATE__state0 1
#define STATE__STOP__STATE 2
void *mainFunc__Block0(struct mwmr_s *channels_Block0[]){
// struct mwmr_s Block0_val__Block1_val_transmitted= channels_Block0[0];
debugInt("*** channel adress transmitted to block0 : ",channels_Block0[0]);
debugInt("*** status adress transmitted to block0 : ",&(channels_Block0[0]->status));
debugInt("*** lock adress transmitted to block0 : ",&(channels_Block0[0]->status->lock));
debugInt("*** channel adress global : ",&(Block0_val__Block1_val));
debugInt("*** status adress global : ",(Block0_val__Block1_val.status));
debugInt("*** lock adress global : ",(Block0_val__Block1_val.status->lock));
int __currentState = STATE__START__STATE;
__attribute__((unused)) request __req0;
__attribute__((unused))int *__params0[0];
__attribute__((unused))setOfRequests __list;
__attribute__((unused))pthread_cond_t __myCond;
__attribute__((unused))request *__returnRequest;
char * __myname = "Block0";
pthread_cond_init(&__myCond, NULL);
fillListOfRequests(&__list, __myname, &__myCond, &__mainMutex);
//printf("my name = %s\n", __myname);
/* Main loop on states */
while(__currentState != STATE__STOP__STATE) {
switch(__currentState) {
case STATE__START__STATE:
traceStateEntering(__myname, "__StartState");
debug2Msg(__myname, "-> (=====) Entering state + state0");
__currentState = STATE__state0;
break;
case STATE__state0:
debug2Msg(__myname, "-> (=====)before MakeNewRequest");
debugInt("channel address", &__req0);
makeNewRequest(&__req0, 18, SEND_ASYNC_REQUEST, 0, 0, 0, 0, __params0);
debug2Msg(__myname, "-> (=====)after MakeNewRequest");
__req0.asyncChannel = &__Block0_val__Block1_val;
debug2Msg(__myname, "-> (=====)before executeOneRequest");
__returnRequest = executeOneRequest(&__list, &__req0);
debug2Msg(__myname, "-> (=====)after executeOneRequest");
clearListOfRequests(&__list);
traceRequest(__myname, __returnRequest);
__currentState = STATE__STOP__STATE;
break;
}
}
//printf("Exiting = %s\n", __myname);
return NULL;
}
File deleted
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment