E
Elmar Jacobs
hi folk,
i have 2 threads an i want to create an event, so that thread1 can inform
thread2 about an update.
in c++ i would make it over
HANDLE hEvent = INVALID_HANDLE_VALUE;
in thread1
{...
SetEvent(hEvent);
.....
}
and in thread2
DWORD WINAPI Thread1(PVOID pArg)
{
.... WaitForSingleObject(hEvent, INFINITE);
......
}
but under c# i have no idea how i can realise it. If it is possible that the
event can carry an data byte, it was perfect.
Can anybody help me?
thanks a lot,
elmar
i have 2 threads an i want to create an event, so that thread1 can inform
thread2 about an update.
in c++ i would make it over
HANDLE hEvent = INVALID_HANDLE_VALUE;
in thread1
{...
SetEvent(hEvent);
.....
}
and in thread2
DWORD WINAPI Thread1(PVOID pArg)
{
.... WaitForSingleObject(hEvent, INFINITE);
......
}
but under c# i have no idea how i can realise it. If it is possible that the
event can carry an data byte, it was perfect.
Can anybody help me?
thanks a lot,
elmar