diff options
author | Alexander Nedotsukov <bland@FreeBSD.org> | 2005-10-01 15:30:46 +0000 |
---|---|---|
committer | Alexander Nedotsukov <bland@FreeBSD.org> | 2005-10-01 15:30:46 +0000 |
commit | 2e09f59054d1702333b2a30f1a6d898d0e04d649 (patch) | |
tree | 517599d41518a84e9b068aa70ad164854384b7cd /ftp | |
parent | 1389eab081c200e22c3b6534ab8bad02baddf6c0 (diff) | |
download | ports-2e09f59054d1702333b2a30f1a6d898d0e04d649.tar.gz ports-2e09f59054d1702333b2a30f1a6d898d0e04d649.zip |
Fix spining on CPU due illegal pthread_cond_wait() usage.
Notes
Notes:
svn path=/head/; revision=143909
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/downloader/Makefile | 1 | ||||
-rw-r--r-- | ftp/downloader/files/patch-main__sndserv.cc | 22 |
2 files changed, 23 insertions, 0 deletions
diff --git a/ftp/downloader/Makefile b/ftp/downloader/Makefile index 771720ef52c8..137003135655 100644 --- a/ftp/downloader/Makefile +++ b/ftp/downloader/Makefile @@ -8,6 +8,7 @@ PORTNAME= downloader PORTVERSION= 2.5.5 +PORTREVISION= 1 CATEGORIES= ftp MASTER_SITES= http://www.krasu.ru/soft/chuchelo/files/ \ ftp://ftp.chg.ru/pub/X11/applications/Xdownloader/ diff --git a/ftp/downloader/files/patch-main__sndserv.cc b/ftp/downloader/files/patch-main__sndserv.cc new file mode 100644 index 000000000000..f592ea1f08dd --- /dev/null +++ b/ftp/downloader/files/patch-main__sndserv.cc @@ -0,0 +1,22 @@ +--- main/sndserv.cc.orig Fri Jan 28 22:41:59 2005 ++++ main/sndserv.cc Sun Oct 2 00:04:43 2005 +@@ -522,8 +522,8 @@ + }; + + void d4xSndServer::run(){ +- my_mutex.lock(); + while(1){ ++ my_mutex.lock(); + pthread_cond_wait(&cond,&(my_mutex.m)); + std::list<d4x::SndEvent> tmpqueue=queue; + queue.clear(); +@@ -538,9 +538,7 @@ + tmpqueue.pop_front(); + }; + if (stop_now) break; +- my_mutex.unlock(); + }; +- my_mutex.unlock(); + }; + + void d4xSndServer::set_sound_file(int event,char *path){ |