File: test_common_glib.c

package info (click to toggle)
libomemo-c 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,092 kB
  • sloc: ansic: 25,957; makefile: 8
file content (23 lines) | stat: -rw-r--r-- 370 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <glib.h>

GRecMutex global_mutex;

void test_global_mutex_lock(void *user_data)
{
    g_rec_mutex_lock(&global_mutex);
}

void test_global_mutex_unlock(void *user_data)
{
    g_rec_mutex_unlock(&global_mutex);
}

void test_global_mutex_setup()
{
    g_rec_mutex_init(&global_mutex);
}

void test_global_mutex_teardown()
{
    g_rec_mutex_clear(&global_mutex);
}