diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-09 16:24:13 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-09 16:24:13 +0000 |
commit | 9a634a53f0d7135ef82e6888a89091db173c7f7f (patch) | |
tree | b424545f9ad05288f6d94048bea5fc48e90aeff0 /libdimension/raytrace.c | |
parent | 28de29088084e5f544b79760748ef28739b5c769 (diff) | |
download | dimension-9a634a53f0d7135ef82e6888a89091db173c7f7f.tar.xz |
Code formatting.
Diffstat (limited to 'libdimension/raytrace.c')
-rw-r--r-- | libdimension/raytrace.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c index 0f00d24..7c3637e 100644 --- a/libdimension/raytrace.c +++ b/libdimension/raytrace.c @@ -60,8 +60,8 @@ dmnsn_raytrace_scene_async(dmnsn_scene *scene) payload->scene = scene; if (pthread_create(&progress->thread, NULL, &dmnsn_raytrace_scene_thread, - payload) - != 0) { + payload) != 0) + { free(payload); dmnsn_delete_progress(progress); return NULL; @@ -130,8 +130,9 @@ dmnsn_raytrace_scene_multithread(dmnsn_raytrace_payload *payload) payloads[i].threads = nthreads; if (pthread_create(&threads[i], NULL, - &dmnsn_raytrace_scene_multithread_thread, &payloads[i]) - != 0) { + &dmnsn_raytrace_scene_multithread_thread, + &payloads[i]) != 0) + { for (j = 0; j < i; ++j) { if (pthread_join(threads[i], &ptr)) { dmnsn_error(DMNSN_SEVERITY_MEDIUM, |