* cygserver_ipc.h (ipc_retval): Add default constructor.

(class thread): struct->class.  Add prototypes for new private methods
	dup_signal_arrived and close_signal_arrived.  Implement constructor and
	destructor.
This commit is contained in:
Corinna Vinschen 2015-01-19 17:42:04 +00:00
parent 70e52cba1b
commit c95ce02160
2 changed files with 23 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2015-01-19 Corinna Vinschen <corinna@vinschen.de>
* cygserver_ipc.h (ipc_retval): Add default constructor.
(class thread): struct->class. Add prototypes for new private methods
dup_signal_arrived and close_signal_arrived. Implement constructor and
destructor.
2015-01-16 Marco Atzeri <marco.atzeri@gmail.com>
Corinna Vinschen <corinna@vinschen.de>

View File

@ -1,6 +1,6 @@
/* cygserver_ipc.h
Copyright 2002, 2003, 2004, 2012, 2013, 2014 Red Hat, Inc.
Copyright 2002, 2003, 2004, 2012, 2013, 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
@ -62,6 +62,7 @@ private:
};
public:
ipc_retval () { ssz = 0; }
ipc_retval (ssize_t nssz) { ssz = nssz; }
operator int () const { return i; }
@ -84,10 +85,23 @@ public:
vm_object_t operator = (vm_object_t nobj) { return obj = nobj; }
};
struct thread {
class thread {
private:
/* Implemented in cgyserver/process.cc */
void dup_signal_arrived ();
void close_signal_arrived ();
public:
class process *client;
proc *ipcblk;
ipc_retval td_retval[2];
thread (class process *_client, proc *_proc, bool _init_m1)
: client (_client), ipcblk (_proc)
{
td_retval[0] = td_retval[1] = _init_m1 ? -1 : 0;
dup_signal_arrived ();
}
~thread () { close_signal_arrived (); }
};
#define td_proc ipcblk
#define p_pid cygpid