… | |
… | |
127 | |
127 | |
128 | inline_size |
128 | inline_size |
129 | void |
129 | void |
130 | linuxaio_array_needsize_iocbp (ANIOCBP *base, int offset, int count) |
130 | linuxaio_array_needsize_iocbp (ANIOCBP *base, int offset, int count) |
131 | { |
131 | { |
132 | /* TODO: quite the overhead to allocate every iocb separately, maybe use our own alocator? */ |
|
|
133 | while (count--) |
132 | while (count--) |
134 | { |
133 | { |
|
|
134 | /* TODO: quite the overhead to allocate every iocb separately, maybe use our own alocator? */ |
135 | ANIOCBP iocb = (ANIOCBP)ev_malloc (sizeof (*iocb)); |
135 | ANIOCBP iocb = (ANIOCBP)ev_malloc (sizeof (*iocb)); |
136 | |
136 | |
137 | /* full zero initialise is probably not required at the moment, but |
137 | /* full zero initialise is probably not required at the moment, but |
138 | * this is not well documented, so we better do it. |
138 | * this is not well documented, so we better do it. |
139 | */ |
139 | */ |