[Mesa-dev] [PATCH] radeon: Remove unnecessary pipe_thread_destroy in radeon_drm_cs_destroy

Marek Olšák maraeo at gmail.com
Thu Jun 14 18:03:16 PDT 2012


Pushed, thanks.

Marek

On Tue, May 22, 2012 at 12:25 PM, Maarten Lankhorst
<m.b.lankhorst at gmail.com> wrote:
> Fixes crash bug introduced with 210ddf0819b5 fd.o #49198
> pthread_detach after a pthread_join is unneeded.
>
> Signed-off-by: Maarten Lankhorst <m.b.lankhorst at gmail.com>
>
> ---
> diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
> index 2239059..168f455 100644
> --- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
> +++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
> @@ -469,7 +469,6 @@ static void radeon_drm_cs_destroy(struct radeon_winsys_cs *rcs)
>         pipe_semaphore_signal(&cs->flush_queued);
>         pipe_semaphore_wait(&cs->flush_completed);
>         pipe_thread_wait(cs->thread);
> -        pipe_thread_destroy(cs->thread);
>     }
>     pipe_semaphore_destroy(&cs->flush_queued);
>     pipe_semaphore_destroy(&cs->flush_completed);
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list