mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,queue] improve queue management
* Fix Queue_EnsureCapacity reallocation handling, ensure queue->tail is properly updated. * Fix allocation behaviour, use growthFactor * 32 as block size. * Add doxygen for Queue_New
This commit is contained in:
@@ -181,6 +181,14 @@ extern "C"
|
||||
WINPR_API void Queue_Free(wQueue* queue);
|
||||
|
||||
/** @brief Creates a new queue
|
||||
*
|
||||
* @param synchronized If \b TRUE all functions are thread safe, if \b FALSE no synchronization
|
||||
* is done.
|
||||
* @param capacity The initial capacity of the queue. If \b 0 or \b -1 default settings are
|
||||
* applied.
|
||||
* @param growthFactor allocation behaviour when the queue capacity should be increased. Larger
|
||||
* values increase the allocation contingent. \b 0 or \b -1 apply default settings.
|
||||
*
|
||||
*
|
||||
* @return A newly allocated queue or \b NULL in case of failure
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user