subwindow.h File Reference

Handling windows of selected threads. More...

#include <l4/dope/dopelib.h>
#include "threadinfo.h"
#include "os.h"

Go to the source code of this file.

Data Structures

union  jtop_callback_t

Functions

load_display_t * disp_by_nr (int id)
 Return a locked display by its number.
int subwindow_create (int id_parent)
 Generate a new window from the selected threads of a parent.
void subwindow_name_callback (dope_event *ev, void *arg)
 Callback for name-label press.
void subwindow_thread_callback (dope_event *ev, void *arg)
 Callback for thread-label press.
void list_lock (void)
void list_unlock (void)
void disp_lock (load_display_t *)
void disp_unlock (load_display_t *)

Variables

os_mutex disp_list_lock
load_display_t main_disp


Detailed Description

Handling windows of selected threads.

Date:
01/15/2004
Author:
Jork Loeser <jork.loeser@inf.tu-dresden.de>

Function Documentation

load_display_t* disp_by_nr ( int  id  ) 

Return a locked display by its number.

This function uses the list-lock.

Referenced by scope_create(), select_all_callback(), select_callback(), sort_callback(), subwindow_create(), subwindow_name_callback(), and subwindow_thread_callback().

int subwindow_create ( int  id_parent  ) 

Generate a new window from the selected threads of a parent.

No reference is held to the parent, so the parent can be destroyed when this function returned.

Parameters:
id_parent Id of the parent disp. Used for getting the switch- setting. Set it to -1 to create the root-window.

References disp_alloc(), disp_by_nr(), disp_free(), disp_insert(), select_all_callback(), sort_callback(), and update_values().

void subwindow_name_callback ( dope_event *  ev,
void *  arg 
)

Callback for name-label press.

Left key toggles selection, right key disables.

Parameters:
arg a jtop_callback_t type, which win and idx set. win is the window-id, idx is the nr of the row (0..)
As we get all pres-events of the label (including keyboard), we have to check this first and conditionally jump to press_callback.

References disp_by_nr(), and do_nonmouse_event().

void subwindow_thread_callback ( dope_event *  ev,
void *  arg 
)

Callback for thread-label press.

This callback selects threads that are similar to the clicked one. With L4, this is the same task, with Linux, this is something else.

Left key toggles selection, right key disables.

Parameters:
arg a jtop_callback_t type, which win and idx set. win is the window-id, idx is the nr of the row (0..)
As we get all pres-events of the label (including keyboard), we have to check this first and conditionally jump to press_callback.

References disp_by_nr(), and do_nonmouse_event().


Generated on Wed Apr 11 06:39:34 2012 for JTop - Top for DROPS by  doxygen 1.5.6