Lines Matching defs:map
1804 * The 'tlsmap_t' type defined below implements a shared global map of
1809 * the global TLS map simply contains a bitmap of allocated keys, and
1835 #define TLSMAP_WORD(m,k) (m)->map[(k)/TLSMAP_BITS]
1847 uint32_t map[TLSMAP_WORDS]; /* bitmap of allocated keys */
1854 /* lock the global TLS map lock and return a handle to it */
1860 /* we need to initialize the first entry of the 'map' array
1863 * produce warnings, so do it the first time we use the map
1873 /* unlock the global TLS map */
1918 tlsmap_t* map = tlsmap_lock();
1919 int k = tlsmap_alloc(map, destructor_function);
1925 tlsmap_unlock(map);
1943 tlsmap_t* map;
1949 map = tlsmap_lock();
1951 if (!tlsmap_test(map, key)) {
1974 tlsmap_clear(map, key);
1980 tlsmap_unlock(map);
1988 tlsmap_t* map;
1992 map = tlsmap_lock();
1993 if (tlsmap_test(map, key)) {
1997 tlsmap_unlock(map);
2008 /* for performance reason, we do not lock/unlock the global TLS map
2032 tlsmap_t* map;
2036 map = tlsmap_lock();
2043 if ( tlsmap_test(map, kk) )
2046 tls_dtor_t dtor = map->dtors[kk];
2062 * the TLS map
2064 tlsmap_unlock(map);
2066 map = tlsmap_lock();
2079 tlsmap_unlock(map);