SST/macro
sstmac_pthread_runner.h
Go to the documentation of this file.
1 /*
2  * This file is part of SST/macroscale:
3  * The macroscale architecture simulator from the SST suite.
4  * Copyright (c) 2009 Sandia Corporation.
5  * This software is distributed under the BSD License.
6  * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7  * the U.S. Government retains certain rights in this software.
8  * For more information, see the LICENSE file in the top
9  * SST/macroscale directory.
10  */
11 
12 #ifndef SSTMAC_SOFTWARE_PROCESS_PTHREAD_RUNNER_H_INCLUDED
13 #define SSTMAC_SOFTWARE_PROCESS_PTHREAD_RUNNER_H_INCLUDED
14 
16 
17 namespace sstmac {
18 namespace sw {
19 
20 class pthread_runner : public thread
21 {
22 
23  protected:
24  typedef void* (*start_fxn)(void*);
26  void * arg_;
27 
28  public:
29  virtual void
30  run();
31 
32  virtual void
34 
35  pthread_runner(software_id id, app* parent,
36  start_fxn start_routine, void* arg);
37 
38 };
39 }
40 
41 }
42 
43 #endif
44 
pthread_runner(software_id id, app *parent, start_fxn start_routine, void *arg)
virtual void run()
Derived types need to override this method.
virtual void clear_subthread_from_parent_app()
The app derived class adds to the thread base class by providing facilities to allow applications to ...
Definition: app.h:55
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
A wrapper for an appid, taskid pair.
Definition: software_id.h:28