6 Dec
                
                    2005
                
            
            
                6 Dec
                
                '05
                
            
            
            
        
    
                10 p.m.
            
        On 06.12 20:57, Tomasz Zielonka wrote:
On Tue, Dec 06, 2005 at 02:52:03PM +0000, Joel Reymont wrote:
Well, I do need to have access to all those thread handles.
Since thread creation is inside IO anyways you might want to look at Control.Concurrent.QSem which solves this in an easy fashion. If you want to use STM then a global TVar Int should work fine. - Einar Karttunen