Destroy pthread_attr when we do not need it anymore.

pthread manual says it is safe to destroy them after they are used
with pthread_create: "If the attributes specified by attr are modified
later, the thread���s attributes shall not be affected."


SVN revision: 34937
devs/devilhorns/wayland_egl
Gustavo Sverzut Barbieri 15 years ago
parent 0c351c3edd
commit d6b97fd852
  1. 1
      legacy/evas/src/lib/engines/common/evas_pipe.c

@ -141,6 +141,7 @@ evas_common_pipe_begin(RGBA_Image *im)
/* setup initial locks */
pthread_create(&(thinfo[i].thread_id), &attr,
evas_common_pipe_thread, &(thinfo[i]));
pthread_attr_destroy(&attr);
}
}
y = 0;

Loading…
Cancel
Save