From Elvin:
From Elvin:

Basically, the problem was that the second time the downloading was starting the main thread was signalling the addition of a new block in the pending list of blocks way faster than the async thread could start and block in the corresponding wait. Therefore the signal was missed by the async thread and it would remain blocked waiting for a signal that would never come.

This problem never showed before because we didn't have the second downloading in the same executable and this made all the difference. I attached the patch to this email.


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@46616 27541ba8-7e3a-0410-8455-c3a389f83636

sawenzel/root,satyarth934/root,vukasinmilosevic/root,simonpf/root,bbockelm/root,esakellari/root,simonpf/root,krafczyk/root,mkret2/root,perovic/root,BerserkerTroll/root,jrtomps/root,simonpf/root,0x0all/ROOT,cxx-hep/root-cern,karies/root,esakellari/my_root_for_test,davidlt/root,evgeny-boger/root,CristinaCristescu/root,vukasinmilosevic/root,karies/root,mattkretz/root,krafczyk/root,gganis/root,satyarth934/root,pspe/root,zzxuanyuan/root-compressor-dummy,abhinavmoudgil95/root,omazapa/root,sirinath/root,Duraznos/root,mattkretz/root,omazapa/root-old,mhuwiler/rootauto,bbockelm/root,arch1tect0r/root,sawenzel/root,beniz/root,sirinath/root,CristinaCristescu/root,davidlt/root,CristinaCristescu/root,evgeny-boger/root,pspe/root,thomaskeck/root,mattkretz/root,esakellari/root,georgtroska/root,dfunke/root,zzxuanyuan/root-compressor-dummy,davidlt/root,olifre/root,gganis/root,abhinavmoudgil95/root,gbitzes/root,olifre/root,Y--/root,agarciamontoro/root,smarinac/root,lgiommi/root,arch1tect0r/root,gganis/root,mkret2/root,esakellari/root,bbockelm/root,omazapa/root-old,lgiommi/root,vukasinmilosevic/root,sbinet/cxx-root,esakellari/my_root_for_test,abhinavmoudgil95/root,georgtroska/root,omazapa/root,alexschlueter/cern-root,sawenzel/root,thomaskeck/root,vukasinmilosevic/root,buuck/root,lgiommi/root,omazapa/root,dfunke/root,olifre/root,georgtroska/root,simonpf/root,beniz/root,BerserkerTroll/root,alexschlueter/cern-root,evgeny-boger/root,abhinavmoudgil95/root,krafczyk/root,jrtomps/root,beniz/root,zzxuanyuan/root,veprbl/root,pspe/root,jrtomps/root,mhuwiler/rootauto,mhuwiler/rootauto,BerserkerTroll/root,Y--/root,Duraznos/root,nilqed/root,omazapa/root,satyarth934/root,mkret2/root,Y--/root,abhinavmoudgil95/root,agarciamontoro/root,alexschlueter/cern-root,karies/root,dfunke/root,sirinath/root,buuck/root,georgtroska/root,lgiommi/root,omazapa/root,jrtomps/root,nilqed/root,0x0all/ROOT,thomaskeck/root,nilqed/root,krafczyk/root,Y--/root,perovic/root,davidlt/root,nilqed/root,bbockelm/root,BerserkerTroll/root,cxx-hep/root-cern,alexschlueter/cern-root,buuck/root,simonpf/root,buuck/root,simonpf/root,esakellari/root,pspe/root,bbockelm/root,jrtomps/root,smarinac/root,mhuwiler/rootauto,Duraznos/root,pspe/root,evgeny-boger/root,davidlt/root,lgiommi/root,zzxuanyuan/root,arch1tect0r/root,evgeny-boger/root,nilqed/root,gbitzes/root,mattkretz/root,pspe/root,esakellari/my_root_for_test,smarinac/root,thomaskeck/root,0x0all/ROOT,root-mirror/root,arch1tect0r/root,nilqed/root,evgeny-boger/root,mattkretz/root,beniz/root,georgtroska/root,veprbl/root,mhuwiler/rootauto,CristinaCristescu/root,sirinath/root,sirinath/root,CristinaCristescu/root,jrtomps/root,root-mirror/root,mhuwiler/rootauto,esakellari/root,dfunke/root,CristinaCristescu/root,dfunke/root,omazapa/root,mkret2/root,karies/root,smarinac/root,dfunke/root,buuck/root,Y--/root,0x0all/ROOT,mkret2/root,zzxuanyuan/root,dfunke/root,smarinac/root,gbitzes/root,omazapa/root-old,thomaskeck/root,mhuwiler/rootauto,pspe/root,karies/root,zzxuanyuan/root-compressor-dummy,Y--/root,olifre/root,abhinavmoudgil95/root,mhuwiler/rootauto,alexschlueter/cern-root,esakellari/root,perovic/root,perovic/root,zzxuanyuan/root-compressor-dummy,CristinaCristescu/root,olifre/root,smarinac/root,sbinet/cxx-root,buuck/root,beniz/root,BerserkerTroll/root,omazapa/root,arch1tect0r/root,BerserkerTroll/root,satyarth934/root,lgiommi/root,krafczyk/root,bbockelm/root,perovic/root,thomaskeck/root,davidlt/root,mattkretz/root,mkret2/root,pspe/root,lgiommi/root,thomaskeck/root,arch1tect0r/root,Duraznos/root,satyarth934/root,sawenzel/root,esakellari/my_root_for_test,satyarth934/root,nilqed/root,Y--/root,0x0all/ROOT,satyarth934/root,evgeny-boger/root,sbinet/cxx-root,root-mirror/root,omazapa/root-old,agarciamontoro/root,zzxuanyuan/root-compressor-dummy,nilqed/root,zzxuanyuan/root,olifre/root,agarciamontoro/root,georgtroska/root,lgiommi/root,cxx-hep/root-cern,olifre/root,mhuwiler/rootauto,davidlt/root,karies/root,jrtomps/root,agarciamontoro/root,nilqed/root,gganis/root,karies/root,dfunke/root,root-mirror/root,davidlt/root,krafczyk/root,davidlt/root,thomaskeck/root,gbitzes/root,Y--/root,omazapa/root-old,zzxuanyuan/root,sawenzel/root,vukasinmilosevic/root,gbitzes/root,BerserkerTroll/root,georgtroska/root,sawenzel/root,karies/root,beniz/root,sbinet/cxx-root,arch1tect0r/root,BerserkerTroll/root,dfunke/root,gbitzes/root,omazapa/root-old,gbitzes/root,zzxuanyuan/root,zzxuanyuan/root-compressor-dummy,smarinac/root,abhinavmoudgil95/root,gganis/root,nilqed/root,cxx-hep/root-cern,sawenzel/root,arch1tect0r/root,Duraznos/root,agarciamontoro/root,arch1tect0r/root,krafczyk/root,krafczyk/root,esakellari/my_root_for_test,zzxuanyuan/root,gganis/root,CristinaCristescu/root,root-mirror/root,smarinac/root,omazapa/root,pspe/root,zzxuanyuan/root,esakellari/root,simonpf/root,vukasinmilosevic/root,zzxuanyuan/root-compressor-dummy,root-mirror/root,omazapa/root-old,abhinavmoudgil95/root,perovic/root,omazapa/root-old,pspe/root,veprbl/root,vukasinmilosevic/root,mkret2/root,omazapa/root,esakellari/my_root_for_test,Duraznos/root,sbinet/cxx-root,esakellari/my_root_for_test,sirinath/root,zzxuanyuan/root,lgiommi/root,simonpf/root,sirinath/root,mkret2/root,satyarth934/root,thomaskeck/root,0x0all/ROOT,mhuwiler/rootauto,beniz/root,vukasinmilosevic/root,bbockelm/root,gganis/root,buuck/root,evgeny-boger/root,karies/root,abhinavmoudgil95/root,omazapa/root,agarciamontoro/root,perovic/root,gbitzes/root,simonpf/root,jrtomps/root,arch1tect0r/root,beniz/root,root-mirror/root,jrtomps/root,cxx-hep/root-cern,Y--/root,zzxuanyuan/root-compressor-dummy,sawenzel/root,sbinet/cxx-root,lgiommi/root,omazapa/root-old,evgeny-boger/root,esakellari/root,sbinet/cxx-root,jrtomps/root,vukasinmilosevic/root,veprbl/root,mattkretz/root,perovic/root,sawenzel/root,Y--/root,evgeny-boger/root,karies/root,esakellari/root,Y--/root,zzxuanyuan/root,georgtroska/root,krafczyk/root,gganis/root,buuck/root,alexschlueter/cern-root,nilqed/root,olifre/root,esakellari/my_root_for_test,Duraznos/root,simonpf/root,olifre/root,veprbl/root,BerserkerTroll/root,satyarth934/root,sbinet/cxx-root,georgtroska/root,abhinavmoudgil95/root,CristinaCristescu/root,vukasinmilosevic/root,mkret2/root,mattkretz/root,agarciamontoro/root,veprbl/root,CristinaCristescu/root,smarinac/root,Duraznos/root,veprbl/root,lgiommi/root,buuck/root,zzxuanyuan/root-compressor-dummy,agarciamontoro/root,veprbl/root,buuck/root,beniz/root,dfunke/root,zzxuanyuan/root-compressor-dummy,alexschlueter/cern-root,mhuwiler/rootauto,esakellari/root,jrtomps/root,BerserkerTroll/root,arch1tect0r/root,root-mirror/root,esakellari/my_root_for_test,gbitzes/root,davidlt/root,sbinet/cxx-root,olifre/root,simonpf/root,cxx-hep/root-cern,smarinac/root,zzxuanyuan/root,veprbl/root,thomaskeck/root,vukasinmilosevic/root,buuck/root,satyarth934/root,veprbl/root,cxx-hep/root-cern,sirinath/root,veprbl/root,beniz/root,mkret2/root,sbinet/cxx-root,root-mirror/root,BerserkerTroll/root,zzxuanyuan/root,krafczyk/root,0x0all/ROOT,karies/root,agarciamontoro/root,perovic/root,root-mirror/root,gganis/root,gbitzes/root,mkret2/root,CristinaCristescu/root,perovic/root,Duraznos/root,abhinavmoudgil95/root,mattkretz/root,davidlt/root,pspe/root,sirinath/root,perovic/root,Duraznos/root,gganis/root,sawenzel/root,olifre/root,gbitzes/root,krafczyk/root,esakellari/root,evgeny-boger/root,agarciamontoro/root,georgtroska/root,georgtroska/root,sirinath/root,omazapa/root-old,beniz/root,mattkretz/root,bbockelm/root,0x0all/ROOT,sirinath/root,omazapa/root-old,root-mirror/root,cxx-hep/root-cern,esakellari/my_root_for_test,omazapa/root,bbockelm/root,satyarth934/root,dfunke/root,bbockelm/root,zzxuanyuan/root-compressor-dummy,0x0all/ROOT,bbockelm/root,gganis/root,Duraznos/root,sbinet/cxx-root,mattkretz/root,sawenzel/root