mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-capture: Avoid using G_STMT_{START,END} from GLib
Open-code them instead, as they’re relatively simple. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #40
This commit is contained in:
@ -281,7 +281,7 @@ sysprof_collector_init (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define COLLECTOR_BEGIN \
|
#define COLLECTOR_BEGIN \
|
||||||
G_STMT_START { \
|
do { \
|
||||||
const SysprofCollector *collector = sysprof_collector_get (); \
|
const SysprofCollector *collector = sysprof_collector_get (); \
|
||||||
if SYSPROF_LIKELY (collector->buffer) \
|
if SYSPROF_LIKELY (collector->buffer) \
|
||||||
{ \
|
{ \
|
||||||
@ -296,7 +296,7 @@ sysprof_collector_init (void)
|
|||||||
if SYSPROF_UNLIKELY (collector->is_shared) \
|
if SYSPROF_UNLIKELY (collector->is_shared) \
|
||||||
G_UNLOCK (control_fd); \
|
G_UNLOCK (control_fd); \
|
||||||
} \
|
} \
|
||||||
} G_STMT_END
|
} while (0)
|
||||||
|
|
||||||
void
|
void
|
||||||
sysprof_collector_allocate (SysprofCaptureAddress alloc_addr,
|
sysprof_collector_allocate (SysprofCaptureAddress alloc_addr,
|
||||||
|
|||||||
Reference in New Issue
Block a user