source: vendor/emx/current/src/pmgdb/threads.h

Last change on this file was 18, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 2.1 KB
Line 
1/* threads.h -*- C++ -*-
2 Copyright (c) 1996 Eberhard Mattes
3
4This file is part of pmgdb.
5
6pmgdb is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11pmgdb is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with pmgdb; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
20
21
22class command_window;
23class gdbio;
24
25class threads_window : public pmtxt
26{
27public:
28
29 typedef pmtxt parent;
30
31 threads_window (command_window *cmd, gdbio *gdb, unsigned id,
32 const SWP *pswp, const char *fontnamesize);
33 ~threads_window ();
34
35 void add (int number, int pid);
36 void select (int number);
37 void enable (int number);
38 void disable (int number);
39 void remove (int tid);
40
41private:
42 class thread;
43
44 // Override member functions of pmframe
45 MRESULT wm_activate (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
46 MRESULT wm_close (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
47 MRESULT wm_command (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
48 bool wm_user (HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
49 void button_event (int line, int column, int tab, int button, int clicks);
50
51 thread *find_by_number (int number);
52 thread *find_by_line (int line);
53 void update (const thread *p);
54 void current_line (int line);
55 void select_line (int line, bool toggle = false);
56
57 command_window *cmd;
58 gdbio *gdb;
59 thread *head;
60 pmtxt_attr sel_attr; // Selected thread
61 pmtxt_attr hilite_attr; // Current thread
62 pmtxt_attr sel_hilite_attr; // Selected & current thread
63 int cur_line; // Line of current thread
64 int sel_line; // Line of selected thread
65};
Note: See TracBrowser for help on using the repository browser.