-/*
- * add_traceable_app
- *
- * Add a traceable application structure to the global
- * list protected by a mutex.
- */
-static void add_traceable_app(struct ltt_traceable_app *lta)
-{
- pthread_mutex_lock(<t_traceable_app_list_mutex);
- cds_list_add(<a->list, <t_traceable_app_list.head);
- traceable_app_count++;
- pthread_mutex_unlock(<t_traceable_app_list_mutex);
-}
-
-/*
- * del_traceable_app
- *
- * Delete a traceable application structure from the
- * global list protected by a mutex.
- */
-static void del_traceable_app(struct ltt_traceable_app *lta)
-{
- pthread_mutex_lock(<t_traceable_app_list_mutex);
- cds_list_del(<a->list);
- /* Sanity check */
- if (traceable_app_count != 0) {
- traceable_app_count--;
- }
- pthread_mutex_unlock(<t_traceable_app_list_mutex);
-}
-