version 1.3.2.4, 2011/09/07 21:37:23
|
version 1.3.2.5, 2011/09/07 23:38:39
|
Line 363 sess_prepareSession(tagSess * __restrict s, u_char use
|
Line 363 sess_prepareSession(tagSess * __restrict s, u_char use
|
hdr->hdr_argc, useDirect); |
hdr->hdr_argc, useDirect); |
ADD_SEMAPHORE(s, ret); |
ADD_SEMAPHORE(s, ret); |
|
|
if (!s->zcopy) | DETACH_MEMORY(s); |
DETACH_MEMORY(s); | |
return arr; |
return arr; |
} |
} |
|
|
Line 385 sess_doneSession(tagSess * __restrict s, array_t ** __
|
Line 384 sess_doneSession(tagSess * __restrict s, array_t ** __
|
|
|
if (!s->zcopy) |
if (!s->zcopy) |
io_arrayFree(*arr); |
io_arrayFree(*arr); |
else |
|
DETACH_MEMORY(s); |
|
io_arrayDestroy(arr); |
io_arrayDestroy(arr); |
} |
} |
|
|
Line 408 sess_commitSession(tagSess * __restrict s, array_t * _
|
Line 405 sess_commitSession(tagSess * __restrict s, array_t * _
|
return -1; |
return -1; |
} |
} |
|
|
if (!s->zcopy) | ATTACH_MEMORY(s); |
ATTACH_MEMORY(s); | |
if (!s->addr) { |
if (!s->addr) { |
if (!s->zcopy) | DETACH_MEMORY(s); |
DETACH_MEMORY(s); | |
| |
return -1; |
return -1; |
} else |
} else |
hdr = (sess_hdr_t*) s->addr; |
hdr = (sess_hdr_t*) s->addr; |
Line 426 sess_commitSession(tagSess * __restrict s, array_t * _
|
Line 420 sess_commitSession(tagSess * __restrict s, array_t * _
|
} |
} |
ADD_SEMAPHORE(s, rs); |
ADD_SEMAPHORE(s, rs); |
|
|
if (!s->zcopy) | DETACH_MEMORY(s); |
DETACH_MEMORY(s); | |
return ret; |
return ret; |
} |
} |