add apps
This commit is contained in:
32
user/app1/appl.h
Normal file
32
user/app1/appl.h
Normal file
@@ -0,0 +1,32 @@
|
||||
// vim: set noet ts=4 sw=4:
|
||||
|
||||
/*! \file
|
||||
* \brief Enthält die Klasse Application
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../libsys/types.h"
|
||||
#include "../libsys/thread.h"
|
||||
|
||||
//! \brief Test application
|
||||
//!
|
||||
//! \note Any class derived from Thread defines an application for StuBS.
|
||||
//!
|
||||
class Application : public Thread {
|
||||
// Prevent copies and assignments
|
||||
Application(const Application&) = delete;
|
||||
Application& operator=(const Application&) = delete;
|
||||
|
||||
public:
|
||||
Application(Application&&) = delete;
|
||||
|
||||
/*! \brief Constructor
|
||||
*
|
||||
*/
|
||||
Application() {}
|
||||
|
||||
/*! \brief Contains the application code.
|
||||
*
|
||||
*/
|
||||
void action() override;
|
||||
};
|
||||
Reference in New Issue
Block a user