diff options
author | norrarvid <norrarvid@gmail.com> | 2012-05-29 13:24:23 +0200 |
---|---|---|
committer | norrarvid <norrarvid@gmail.com> | 2012-05-29 13:24:23 +0200 |
commit | 2109d7a044430ee4ad5b51f2c18cc496be0e7fd8 (patch) | |
tree | 17d9b9852a05fe9f9a67540670bef1b3c3d14b69 /xrdp/xrdp_mm.c | |
parent | 60b052965634be151d88f7011149d0edc71f23d8 (diff) | |
parent | a45f993bfe74aed27245454f1ae32302b0528d9f (diff) | |
download | xrdp-proprietary-2109d7a044430ee4ad5b51f2c18cc496be0e7fd8.tar.gz xrdp-proprietary-2109d7a044430ee4ad5b51f2c18cc496be0e7fd8.zip |
merge comments defines and simplified function
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) { |