-
June 30th, 2011, 09:13 PM
#1
Api CreateEvent
Could some please explain how CreateEvent works ,
could it be used to send a signal to another process ( listening for an event) , like a command to do something.
I got one process creates a shared Memory ( 2MB) , waits for another process to attached to that shared Memory fill it with data ( to be processed) now I wan to send a command signal to the 1st process that shared Memory is written to and can now proceed with processing that data, once done data is written back to the shared buffer command signal send to the send process to let them know that data is process and they go ahead and copy it from there.
-
July 1st, 2011, 01:12 AM
#2
Re: Api CreateEvent
Originally Posted by aamir121a
Could some please explain how CreateEvent works ,
could it be used to send a signal to another process ( listening for an event) , like a command to do something.
Yes. it can.
You have to create the named event.
Victor Nijegorodov
-
July 1st, 2011, 11:59 PM
#3
Re: Api CreateEvent
Thanks victor could you please post some example
-
July 3rd, 2011, 03:38 PM
#4
-
July 3rd, 2011, 03:46 PM
#5
Re: Api CreateEvent
I've created a templated class called MMFileStructT that creates a memory mapped file sized to a structure.
The class also exposes two named events so that two processes can signal changes in the mmf data.
See the code guru article: http://www.codeguru.com/cpp/article.php/c17975/
-
July 4th, 2011, 12:52 AM
#6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|