|
|
|
@ -41,7 +41,7 @@ commManagerPollCtor(void * _this, va_list * params) |
|
|
|
TR_CommManager cmgr = _this; |
|
|
|
nfds_t i; |
|
|
|
|
|
|
|
TR_PARENTCALL(_this, TR_Class, ctor, params); |
|
|
|
TR_PARENTCALL(TR_CommManagerPoll, _this, TR_Class, ctor, params); |
|
|
|
this->fds = TR_malloc(sizeof(struct pollfd) * cmgr->n_endpoints); |
|
|
|
for (i = 0; i < cmgr->n_endpoints; i++) { |
|
|
|
this->fds[i].fd = -1; |
|
|
|
@ -59,7 +59,7 @@ commManagerPollDtor(void * _this) |
|
|
|
TR_CommManagerPoll this = _this; |
|
|
|
|
|
|
|
TR_MEM_FREE(this->fds); |
|
|
|
TR_PARENTCALL(_this, TR_Class, dtor); |
|
|
|
TR_PARENTCALL(TR_CommManagerPoll, _this, TR_Class, dtor); |
|
|
|
} |
|
|
|
|
|
|
|
static |
|
|
|
|