get_web_dir_lock
pthread_rwlock_t* get_web_dir_lock();
if(pthread_rwlock_rdlock(get_web_dir_lock()) == 0){
pthread_rwlock_unlock(get_web_dir_lock());