Subversion Repositories HelenOS

Rev

Rev 2938 | Rev 2940 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2938 Rev 2939
Line 34... Line 34...
34
 
34
 
35
#ifndef DTHREAD_H_
35
#ifndef DTHREAD_H_
36
#define DTHREAD_H_
36
#define DTHREAD_H_
37
 
37
 
38
#include <udebug.h>
38
#include <udebug.h>
-
 
39
#include <fibril.h>
39
#include <libadt/list.h>
40
#include <libadt/list.h>
40
 
41
 
41
typedef struct {
42
typedef struct {
42
    int id;     /* human-friendly id */
43
    int id;     /* human-friendly id */
43
    thash_t hash;   /* system hash */
44
    thash_t hash;   /* system hash */
-
 
45
    fid_t fid;  /* id of servicing fibril */
-
 
46
    int stopped;
44
 
47
 
45
    /** Link to list of debugged threads */
48
    /** Link to list of debugged threads */
46
    link_t link;
49
    link_t link;
47
} dthread_t;
50
} dthread_t;
48
 
51
 
49
extern link_t dthreads;     /* List of application's threads */
52
extern link_t dthreads;     /* List of application's threads */
50
extern dthread_t *cwt;
53
extern dthread_t *cwt;
51
 
54
 
52
dthread_t *dthread_new(thash_t hash);
55
dthread_t *dthread_new(thash_t hash);
53
void dthread_delete(dthread_t *dthread);
56
void dthread_delete(dthread_t *dthread);
-
 
57
dthread_t *dthread_get_by_fid(fid_t fid);
-
 
58
dthread_t *dthread_get(void);
-
 
59
void dthread_stop_me(void);
-
 
60
void dthread_resume(dthread_t *dt);
-
 
61
 
54
 
62
 
55
#endif
63
#endif
56
 
64
 
57
/** @}
65
/** @}
58
 */
66
 */