Event mechanism

Hello all there,

I am newbe to unix programing.

I want to implement event mechanism just like __event, __hook and __raise in VC++.

Is there any way to do so in linux C++?

Sorry if i have posted it in wrong forum.

Regards,
Manish Patel
__event, __hook and __raise are C# constructs.

It's not a Windows/Linux issue. It's a C#/C++ issue.
Last edited on
Thanks for your reply.
So,

How can i achive this in c++?
Do you have any idea?

Regards,
Manish Patel
It's pretty obvious how it might be done in C/C++ on Windows. They manage a Windows Event. It's probably declared as asynchronous, auto-reset and anonymous.

__event says what will set the event
__hook defines a handler for the event (the runtime waits for it with WaitForMultipleObjects and calls the handler when it fires)


Because the language is so integrated with OS it's tricky to port, you'll need an event mechanism on Linux. My first port of call would be to take a look at the implementation of Mono.
Topic archived. No new replies allowed.