mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Fixed memory leak on queue nodes by using local memory heap on normal
execution and global memory heap on shutdown. Added a funcition to get work items from queue without waiting and additional info when there is no work to do for a extended periods.
This commit is contained in:
parent
38471a6d6a
commit
24235e99d8
8 changed files with 248 additions and 221 deletions
|
|
@ -95,6 +95,15 @@ ib_wqueue_timedwait(
|
|||
ib_wqueue_t* wq, /* in: work queue */
|
||||
ib_time_t wait_in_usecs); /* in: wait time in micro seconds */
|
||||
|
||||
/********************************************************************
|
||||
Return first item on work queue or NULL if queue is empty
|
||||
@return work item or NULL */
|
||||
void*
|
||||
ib_wqueue_nowait(
|
||||
/*=============*/
|
||||
ib_wqueue_t* wq); /*<! in: work queue */
|
||||
|
||||
|
||||
/* Work queue. */
|
||||
struct ib_wqueue_t {
|
||||
ib_mutex_t mutex; /*!< mutex protecting everything */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue