/** * Copyright (C) ARM Limited 2010-2014. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#ifndef USERSPACESOURCE_H#define USERSPACESOURCE_H#include <semaphore.h>#include "Buffer.h"#include "Source.h"// User space countersclassUserSpaceSource:publicSource{public:UserSpaceSource(sem_t*senderSem);~UserSpaceSource();boolprepare();voidrun();voidinterrupt();boolisDone();voidwrite(Sender*sender);private:BuffermBuffer;// Intentionally unimplementedUserSpaceSource(constUserSpaceSource&);UserSpaceSource&operator=(constUserSpaceSource&);};#endif // USERSPACESOURCE_H