Thank you very much for your help.
I added a while loop at the end of the main() to fix the problem.
在 2016-06-24 16:45:39,"Pekka Paalanen" 写道:
>On Fri, 24 Jun 2016 11:15:32 +0800 (CST)
>袁嘉伟 wrote:
>
>> 在 2016-06-23 21:13:28,"Pekka Paalanen"
在 2016-06-23 21:13:28,"Pekka Paalanen" 写道:
>On Thu, 23 Jun 2016 14:52:23 +0800 (CST)
>袁嘉伟 wrote:
>
>> Hi Pekka:
>>
>> Sorry to take you some time. It's still this issue.
>> I made a test that using 'pthread' to created another thread, and then
>>
Hi Pekka:
Sorry to take you some time. It's still this issue.
I made a test that using 'pthread' to created another thread, and then created
the display in the child thread.
But program was blocked when connecting to a server(wl_display_connect). It
should be pending according to log.
However,
Yes, I want to achieve that drawing the client from a thread but not the main
thread.
Before I have tested that creating display and drawing surface from main
thread, and I try to call
the functions(xdg_surface_) of wayland to control the client from child
thread, but failed.
The reason is