summaryrefslogtreecommitdiff
path: root/src/lib/content.cc
blob: 2fb94e9598ae621228441dc47eb8331a13258956 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <boost/thread/mutex.hpp>
#include "content.h"
#include "util.h"

using std::string;
using boost::shared_ptr;

Content::Content (boost::filesystem::path f)
	: _file (f)
{

}

void
Content::examine (shared_ptr<Film>, shared_ptr<Job>, bool)
{
	string const d = md5_digest (_file);
	boost::mutex::scoped_lock lm (_mutex);
	_digest = d;
}