forked from enlightenment/efl
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
This commit is contained in:
parent
0c351c3edd
commit
d6b97fd852
|
@ -141,6 +141,7 @@ evas_common_pipe_begin(RGBA_Image *im)
|
||||||
/* setup initial locks */
|
/* setup initial locks */
|
||||||
pthread_create(&(thinfo[i].thread_id), &attr,
|
pthread_create(&(thinfo[i].thread_id), &attr,
|
||||||
evas_common_pipe_thread, &(thinfo[i]));
|
evas_common_pipe_thread, &(thinfo[i]));
|
||||||
|
pthread_attr_destroy(&attr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
y = 0;
|
y = 0;
|
||||||
|
|
Loading…
Reference in New Issue