Lock callback mechanism
|Assignee:||Carlos Martín||% Done:|
|Category:||Core & System|
Right now, when a pool needs to access the DB, it sets the callback function and then asks the DB to perform the query.
The DB then locks its mutex, performs the query, calls back the pool, and unlocks itself.
If this sql query takes too much time, the pool may set a new callback function hoping to perform a new query. In this case the first query answer is sent to the wrong callback function.