Posted By: jerryiii (Vsude dobre, v CR nejhur) on 'CZprogram' Title: Re: Windos threads Date: Fri Mar 19 14:27:29 2004 > i Zdar, > da se nejak zajistit, aby se mi pri ukonceni threadu vzdy zavolala nejaka > funkce? Neco jako pthread_cleanup_push ... No muzes si udelat worker thread co bude cekat na handly tech ostatnich threadu, budou signalovany pri ukonceni. Ale tohle ti pusti kod az pote co ten thread skonci, ne tesne pred nim. > Pripadne, asi neexistuje nastaveni destruktoru pri TlsAlloc (ala > pthread_key_create druhy parametr) ? No neni problem si napsat thread funkci co ti na konci neco zavola. Ruzny frameworky (MFC, .Net, mozna i WTL) maj wrappery na thread ktery ti tohle umoznej. > Dik, > Krysa > rat@atrey.karlin.mff.cuni.cz Jsem Krysa > http://atrey.karlin.mff.cuni.cz/~rat/ Jerry III Enough said ... http://jerryiii.home.sprynet.com/mica/index.htm