summaryrefslogtreecommitdiff
path: root/src/glibext/workgroup.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-08-25 17:04:01 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-08-25 17:04:01 (GMT)
commitab705b2c7fedce89ff08b36195706b2a1d9e1c42 (patch)
tree9615c3e47e4897d1dc4920d26fdc8da7eb01ac82 /src/glibext/workgroup.h
parenta0532508524a37444d15b878c5e494cd348b0cae (diff)
Mark 0 as a reserved work group identifier.
Diffstat (limited to 'src/glibext/workgroup.h')
-rw-r--r--src/glibext/workgroup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glibext/workgroup.h b/src/glibext/workgroup.h
index 1a003c8..f40155e 100644
--- a/src/glibext/workgroup.h
+++ b/src/glibext/workgroup.h
@@ -47,6 +47,11 @@ DECLARE_GTYPE(GWorkGroup, g_work_group, G, WORK_GROUP);
*/
typedef uint64_t wgroup_id_t;
+/**
+ * Marque de non initialisation.
+ */
+#define INVALID_GROUP_ID 0
+
/* Crée un nouveau thread dédié à un type de travaux donné. */
GWorkGroup *g_work_group_new(wgroup_id_t, guint);