diff options
author | bland <bland@FreeBSD.org> | 2005-10-01 23:30:46 +0800 |
---|---|---|
committer | bland <bland@FreeBSD.org> | 2005-10-01 23:30:46 +0800 |
commit | 9c5b041f3b7e154968156bb6a62c0c12ca73454d (patch) | |
tree | d7d5cb4cd1f4c6c6015a30edc184ff276d5bbf3f /ftp | |
parent | a541694b02dffa163166d3b2a4952d1095fdbc84 (diff) | |
download | freebsd-ports-gnome-9c5b041f3b7e154968156bb6a62c0c12ca73454d.tar.gz freebsd-ports-gnome-9c5b041f3b7e154968156bb6a62c0c12ca73454d.tar.zst freebsd-ports-gnome-9c5b041f3b7e154968156bb6a62c0c12ca73454d.zip |
Fix spining on CPU due illegal pthread_cond_wait() usage.
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){ |