Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 555916
Collapse All | Expand All

(-)a/include/poddlthread.h (-1 / +2 lines)
Lines 7-12 Link Here
7
7
8
#include <sys/time.h>
8
#include <sys/time.h>
9
#include <time.h>
9
#include <time.h>
10
#include <memory>
10
11
11
#include <configcontainer.h>
12
#include <configcontainer.h>
12
13
Lines 24-30 class poddlthread { Link Here
24
	private:
25
	private:
25
		void mkdir_p(const char * file);
26
		void mkdir_p(const char * file);
26
		download * dl;
27
		download * dl;
27
		std::ofstream *f;
28
		std::shared_ptr<std::ofstream> f;
28
		timeval tv1;
29
		timeval tv1;
29
		timeval tv2;
30
		timeval tv2;
30
		size_t bytecount;
31
		size_t bytecount;
(-)a/src/pb_controller.cpp (+1 lines)
Lines 287-292 void pb_controller::start_downloads() { Link Here
287
		if (it->status() == DL_QUEUED) {
287
		if (it->status() == DL_QUEUED) {
288
			std::thread t {poddlthread(&(*it), cfg)};
288
			std::thread t {poddlthread(&(*it), cfg)};
289
			--dl2start;
289
			--dl2start;
290
			t.detach();
290
		}
291
		}
291
	}
292
	}
292
}
293
}
(-)a/src/pb_view.cpp (+1 lines)
Lines 111-116 void pb_view::run(bool auto_download) { Link Here
111
			if (idx != -1) {
111
			if (idx != -1) {
112
				if (ctrl->downloads()[idx].status() != DL_DOWNLOADING) {
112
				if (ctrl->downloads()[idx].status() != DL_DOWNLOADING) {
113
					std::thread t {poddlthread(&ctrl->downloads()[idx], ctrl->get_cfgcont())};
113
					std::thread t {poddlthread(&ctrl->downloads()[idx], ctrl->get_cfgcont())};
114
					t.detach();
114
				}
115
				}
115
			}
116
			}
116
		}
117
		}
(-)a/src/poddlthread.cpp (-1 lines)
Lines 22-28 poddlthread::poddlthread(download * dl_, newsbeuter::configcontainer * c) : dl(d Link Here
22
}
22
}
23
23
24
poddlthread::~poddlthread() {
24
poddlthread::~poddlthread() {
25
	delete f;
26
}
25
}
27
26
28
void poddlthread::operator()() {
27
void poddlthread::operator()() {

Return to bug 555916