/[svn]/linuxsampler/trunk/src/common/Thread.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Thread.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1211 by schoenebeck, Sat Feb 19 02:40:24 2005 UTC revision 1212 by schoenebeck, Tue May 29 23:59:36 2007 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6     *   Copyright (C) 2005 - 2007 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 32  Line 33 
33  #include <pthread.h>  #include <pthread.h>
34  #include <errno.h>  #include <errno.h>
35    
36    namespace LinuxSampler {
37    
38  /// Abstract base class for classes that need to run in an own thread.  /// Abstract base class for classes that need to run in an own thread.
39  class Thread {  class Thread {
40      public:      public:
# Line 41  class Thread { Line 44  class Thread {
44          virtual int  StopThread();          virtual int  StopThread();
45          virtual int  SignalStartThread();          virtual int  SignalStartThread();
46          virtual int  SignalStopThread();          virtual int  SignalStopThread();
47          virtual bool IsRunning() { return Running; }          virtual bool IsRunning();
48          virtual int  SetSchedulingPriority(); //FIXME: should be private          virtual int  SetSchedulingPriority(); //FIXME: should be private
49          virtual int  LockMemory();            //FIXME: should be private          virtual int  LockMemory();            //FIXME: should be private
50          virtual void EnableDestructor();      //FIXME: should be private          virtual void EnableDestructor();      //FIXME: should be private
# Line 64  class Thread { Line 67  class Thread {
67  void* __pthread_launcher(void* thread);  void* __pthread_launcher(void* thread);
68  void  __pthread_destructor(void* thread);  void  __pthread_destructor(void* thread);
69    
70    } // namespace LinuxSampler
71    
72  #endif // __THREAD_H__  #endif // __THREAD_H__

Legend:
Removed from v.1211  
changed lines
  Added in v.1212

  ViewVC Help
Powered by ViewVC