aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_cpu_topology.h
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-09-24 11:09:55 +0200
committerRickard Green <[email protected]>2010-11-18 14:14:25 +0100
commitf4aa12fc5f5756d7574311cf66cd5ec8025df682 (patch)
treec0b36f4aeb7a950b88b858b0b9975aad8668aaf4 /erts/emulator/beam/erl_cpu_topology.h
parent728b62363b9ec6248d14438f36adf03f7d737f89 (diff)
downloadotp-f4aa12fc5f5756d7574311cf66cd5ec8025df682.tar.gz
otp-f4aa12fc5f5756d7574311cf66cd5ec8025df682.tar.bz2
otp-f4aa12fc5f5756d7574311cf66cd5ec8025df682.zip
Generalize reader groups
Reader groups have been generalized to cpu groups which can be used for implementing reader groups, but also for implementing other functionality in the future.
Diffstat (limited to 'erts/emulator/beam/erl_cpu_topology.h')
-rw-r--r--erts/emulator/beam/erl_cpu_topology.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_cpu_topology.h b/erts/emulator/beam/erl_cpu_topology.h
index b83ddc25da..c5a9520b61 100644
--- a/erts/emulator/beam/erl_cpu_topology.h
+++ b/erts/emulator/beam/erl_cpu_topology.h
@@ -91,4 +91,15 @@ Eterm erts_fake_scheduler_bindings(Process *p, Eterm how);
Eterm erts_debug_cpu_groups_map(Process *c_p, int groups);
+typedef void (*erts_cpu_groups_callback_t)(int,
+ ErtsSchedulerData *,
+ int,
+ void *);
+
+void erts_add_cpu_groups(int groups,
+ erts_cpu_groups_callback_t callback,
+ void *arg);
+void erts_remove_cpu_groups(erts_cpu_groups_callback_t callback,
+ void *arg);
+
#endif