MCPcopy Create free account
hub / github.com/MariaDB/server / trylock_short

Function trylock_short

sql/sql_show.cc:188–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186*/
187
188static bool trylock_short(mysql_mutex_t *mutex)
189{
190 uint i;
191 for (i= 0 ; i < 100 ; i++)
192 {
193 if (!mysql_mutex_trylock(mutex))
194 return 0;
195 LF_BACKOFF();
196 }
197 return 1;
198}
199
200
201/***************************************************************************

Callers 3

thread_state_infoFunction · 0.85
list_callbackFunction · 0.85
processlist_callbackFunction · 0.85

Calls 1

LF_BACKOFFFunction · 0.85

Tested by

no test coverage detected