diff options
| author | norrarvid <norrarvid@gmail.com> | 2012-05-29 12:46:56 +0200 |
|---|---|---|
| committer | norrarvid <norrarvid@gmail.com> | 2012-05-29 12:46:56 +0200 |
| commit | a45f993bfe74aed27245454f1ae32302b0528d9f (patch) | |
| tree | e51af5e1c32bae783023e64da88f69eab2e25566 /xrdp/xrdp_mm.c | |
| parent | 900a2541ca94b5c4cb839c3bd6d35e6460ca1c48 (diff) | |
| download | xrdp-proprietary-a45f993bfe74aed27245454f1ae32302b0528d9f.tar.gz xrdp-proprietary-a45f993bfe74aed27245454f1ae32302b0528d9f.zip | |
added comments, added define, removed unused inparameter
Diffstat (limited to 'xrdp/xrdp_mm.c')
| -rw-r--r-- | xrdp/xrdp_mm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c index 223b128b..2d14351f 100644 --- a/xrdp/xrdp_mm.c +++ b/xrdp/xrdp_mm.c @@ -62,6 +62,7 @@ xrdp_mm_sync_load(long param1, long param2) static void APP_CC xrdp_mm_module_cleanup(struct xrdp_mm* self) { + g_writeln("xrdp_mm_module_cleanup"); if (self->mod != 0) { if (self->mod_exit != 0) @@ -72,7 +73,7 @@ xrdp_mm_module_cleanup(struct xrdp_mm* self) } if (self->mod_handle != 0) { - /* main thread unload */ + /* Let the main thread unload the module.*/ g_xrdp_sync(xrdp_mm_sync_unload, self->mod_handle, 0); } trans_delete(self->chan_trans); @@ -280,6 +281,7 @@ xrdp_mm_setup_mod1(struct xrdp_mm* self) } if (self->mod_handle == 0) { + /* Let the main thread load the lib,*/ self->mod_handle = g_xrdp_sync(xrdp_mm_sync_load, (long)lib, 0); if (self->mod_handle != 0) { @@ -1084,11 +1086,11 @@ xrdp_mm_get_wait_objs(struct xrdp_mm* self, rv = 0; if ((self->sesman_trans != 0) && self->sesman_trans_up) { - trans_get_wait_objs(self->sesman_trans, read_objs, rcount, timeout); + trans_get_wait_objs(self->sesman_trans, read_objs, rcount); } if ((self->chan_trans != 0) && self->chan_trans_up) { - trans_get_wait_objs(self->chan_trans, read_objs, rcount, timeout); + trans_get_wait_objs(self->chan_trans, read_objs, rcount); } if (self->mod != 0) { |
