static void _mapcache_cache_tc_delete(mapcache_context *ctx, mapcache_tile *tile) { struct tc_conn conn; mapcache_cache_tc *cache = (mapcache_cache_tc*)tile->tileset->cache; char *skey = mapcache_util_get_tile_key(ctx,tile,cache->key_template,NULL,NULL); conn = _tc_get_conn(ctx,tile,0); GC_CHECK_ERROR(ctx); tcbdbout2(conn.bdb, skey); _tc_release_conn(ctx,tile,conn); }
/*实时监听消息队列,并发送处理请求*/ static void synchttp_dispatch() { pthread_detach(pthread_self()); char queue_name[300] = {0x00}; int readpos_value = 0; while (1) { readpos_value = synchttp_now_readpos(); if(readpos_value >0){ sprintf(queue_name, "Q:%d", readpos_value); synchttp_dispense(queue_name); tcbdbout2(synchttp_db_tcbdb, queue_name); } } }