From 6bfd66051632fdb8eca4103df2c3c67492d28af7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 23 Nov 2019 16:59:59 -0800 Subject: rototiller: pass cpu to .render_fragment() Mostly mechanical change, though threads.c needed some jiggering to make the logical cpu id available to the worker threads. Now render_fragment() can easily addresss per-cpu data created by create_context(). --- src/modules/stars/stars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/stars/stars.c') diff --git a/src/modules/stars/stars.c b/src/modules/stars/stars.c index 7c2f5f2..63ff73c 100644 --- a/src/modules/stars/stars.c +++ b/src/modules/stars/stars.c @@ -13,7 +13,7 @@ /* Copyright (C) 2017 Philip J. Freeman */ -static void stars_render_fragment(void *context, fb_fragment_t *fragment) +static void stars_render_fragment(void *context, unsigned cpu, fb_fragment_t *fragment) { static int initialized, z; static struct universe* u; -- cgit v1.2.1