• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

ThreadWeaver

  • threadweaver
  • Weaver
Thread.h
Go to the documentation of this file.
1 /* -*- C++ -*-
2 
3  This file declares the Thread class.
4 
5  Thread is not a part of the public interface of the ThreadWeaver library.
6 
7  $ Author: Mirko Boehm $
8  $ Copyright: (C) 2004, 2005, 2006 Mirko Boehm $
9  $ Contact: mirko@kde.org
10  http://www.kde.org
11  http://www.hackerbuero.org $
12 
13  This library is free software; you can redistribute it and/or
14  modify it under the terms of the GNU Library General Public
15  License as published by the Free Software Foundation; either
16  version 2 of the License, or (at your option) any later version.
17 
18  This library is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  Library General Public License for more details.
22 
23  You should have received a copy of the GNU Library General Public License
24  along with this library; see the file COPYING.LIB. If not, write to
25  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
26  Boston, MA 02110-1301, USA.
27 
28  $Id: Thread.h 32 2005-08-17 08:38:01Z mirko $
29 */
30 
31 #ifndef THREADWEAVER_THREAD_H
32 #define THREADWEAVER_THREAD_H
33 
34 #include <QtCore/QMutex>
35 #include <QtCore/QThread>
36 
37 #include <threadweaver/threadweaver_export.h>
38 
39 namespace ThreadWeaver {
40 
41  class Job;
42  class WeaverImpl;
43  class ThreadRunHelper;
44 
47  class THREADWEAVER_EXPORT Thread : public QThread
48  {
49  Q_OBJECT
50 
51  public:
58  explicit Thread ( WeaverImpl *parent = 0 );
59 
61  ~Thread();
62 
69  void run();
70 
71  // FIXME (0.7) provide usleep and sleep, too
76  void msleep ( unsigned long msec );
77 
87  unsigned int id();
88 
94  void requestAbort();
95 
96  Q_SIGNALS:
98  void started ( ThreadWeaver::Thread* );
100  void jobStarted ( ThreadWeaver::Thread*, ThreadWeaver::Job* );
102  void jobDone ( ThreadWeaver::Job* );
103 
104  private:
105  class Private;
106  Private * const d;
107  };
108 
109 }
110 
111 #endif
112 
113 
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 11:45:26 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

ThreadWeaver

Skip menu "ThreadWeaver"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal