No need for recursive mutex
authorAdam Dickmeiss <adam@indexdata.dk>
Sun, 8 Aug 2010 19:21:03 +0000 (21:21 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Sun, 8 Aug 2010 19:21:03 +0000 (21:21 +0200)
src/session.c

index 1dc3adf..f7c0b99 100644 (file)
@@ -724,7 +724,7 @@ struct session *new_session(NMEM nmem, struct conf_service *service,
     }
     session->normalize_cache = normalize_cache_create();
     session->session_mutex = 0;
-    pazpar2_mutex_create_flag(&session->session_mutex, name, PTHREAD_MUTEX_RECURSIVE);
+    pazpar2_mutex_create(&session->session_mutex, name);
 
     return session;
 }