Jump to content

sc_event_and_list/sc_event_or_list usage ??


mohitnegi

Recommended Posts

Hello ,
i have a scenario like this

thread1 {
while(1)

    e1.notify();

}
 
thread2{
while(1){
   wait(e1);
}
}
 

know thread 1 leaves control after two loop i.e after two event notify now i want thread2 to also run twice ...

cleardot.gif
 
can use sc_event_and_list here ???will this fullfill my purpose ...
 
 
 
 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...