MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / gmtime_r

Function gmtime_r

mysys/my_pthread.c:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88*/
89
90struct tm *gmtime_r(const time_t *clock, struct tm *res)
91{
92 struct tm *tmp;
93 mysql_mutex_lock(&LOCK_localtime_r);
94 tmp= gmtime(clock);
95 *res= *tmp;
96 mysql_mutex_unlock(&LOCK_localtime_r);
97 return res;
98}
99#endif
100
101/****************************************************************************

Callers 1

get_dateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected