[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] pthread_t



"David Bo Jensen" <sslug@sslug> wrote on 16-05-2007 16:55:54:

> Under Windows kan jeg skrive
> 
> void MyClass::start_thread() {
>   if (hThread!=NULL) {
>     stop_thread=true;
>     WaitForSingleObject(hThread,INFINITE);

Jeg håber at dette er eksempelkode da der mangler en CloseHandle for at 
undgå Windows Memory Leak(TM) !(C) ;-)

>   }
>   stop_thread=false;
>   hThread=::CreateThread(0,0,ThreadProc,LPVOID(this),0,&id);

Jeg håber at du linker dynamiskt da CreateThread giver Windows Memory 
Leak(TM) !(C) ;-) -- ved statisk linkning brug _beginthreadex/_endthreadex 
i stedet (altsammen jf. MSDN)

> }


Venlig hilsen / Best regards

Nils Åke Ljunggren
Senior Developer
Mobile +45 2621 9966
sslug@sslug

IntraVision ApS 
Lyngsø Alle 3,  2970 Hørsholm,  Denmark
Office: +45 7023 2340
Fax: +45 7023 2349
www.intravision.dk

Winner of 2007 Lotus Awards 
IntraVision has won the 2007 Lotus Awards in the category "Best Messaging 
and Collaboration Solution".
Best Messaging and Collaboration Solution
This category recognizes a solution that provides a company with improved 
productivity through increased real-time collaboration and human 
interaction. The winning solution must bring people - employees, 
customers, and/or 
suppliers -- together, through messaging, calendaring and scheduling, and 
collaborative applications, while helping to lower the total cost of 
ownership of the company's messaging and collaboration infrastructure.
Read more at: http://www.ontimesuite.com/ 


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-06-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *