Home » U++ Library support » U++ MT-multithreading and servers » Thread calls GUI
Re: Thread calls GUI [message #20099 is a reply to message #20086] |
Tue, 17 February 2009 15:57   |
|
How about to add semaphore method dword Semaphore::Wait(int timeout)?
in win32 is simple:
int Semaphore::Wait( int timeout )
{
dword result_value;
result_value = WaitForSingleObject(handle, timeout);
if(result_value == WAIT_FAILED) return(SEMAPHORE_WAIT_ERROR);
if(result_value == WAIT_TIMEOUT) return(SEMAPHORE_TIMEOUT);
}
but in POSIX is more hardly.
The good article found here.
I think it have sense on i have a postcallback and i know maximum execution time. Or I'm wrong?
|
|
|
Goto Forum:
Current Time: Wed May 14 19:46:15 CEST 2025
Total time taken to generate the page: 0.02883 seconds
|