2 * Copyright (C) ARM Limited 2010-2014. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
13 Source::Source() : mThreadID() {
19 void Source::start() {
20 if (pthread_create(&mThreadID, NULL, runStatic, this)) {
21 logg->logError(__FILE__, __LINE__, "Failed to create source thread");
27 pthread_join(mThreadID, NULL);
30 void *Source::runStatic(void *arg) {
31 static_cast<Source *>(arg)->run();