OLD | NEW |
1 { | 1 { |
2 'TOOLS': ['newlib', 'glibc', 'pnacl'], | 2 'TOOLS': ['newlib', 'glibc', 'pnacl'], |
3 'TARGETS': [ | 3 'TARGETS': [ |
4 { | 4 { |
5 'NAME' : 'mt_input_events', | 5 'NAME' : 'mt_input_events', |
6 'TYPE' : 'main', | 6 'TYPE' : 'main', |
7 'SOURCES' : [ | 7 'SOURCES' : [ |
8 'custom_events.cc', | 8 'custom_events.cc', |
9 'custom_events.h', | 9 'custom_events.h', |
10 'mt_input_events.cc', | 10 'mt_input_events.cc', |
11 'shared_queue.h', | 11 'shared_queue.h', |
12 ], | 12 ], |
13 'LIBS': ['ppapi_cpp'] | 13 'LIBS': ['ppapi_cpp', 'ppapi', 'pthread'] |
14 } | 14 } |
15 ], | 15 ], |
16 'DEST': 'examples', | 16 'DEST': 'examples', |
17 'NAME': 'mt_input_events', | 17 'NAME': 'mt_input_events', |
18 'TITLE': 'Multi-threaded Input Events', | 18 'TITLE': 'Multi-threaded Input Events', |
19 'DESC': """ | 19 'DESC': """ |
20 The Multithreaded Input Events example combines HTML, Javascript, | 20 The Multithreaded Input Events example combines HTML, Javascript, |
21 and C++ (the C++ is compiled to create a .nexe file). | 21 and C++ (the C++ is compiled to create a .nexe file). |
22 The C++ shows how to handle input events in a multi-threaded application. | 22 The C++ shows how to handle input events in a multi-threaded application. |
23 The main thread converts input events to non-pepper events and puts them on | 23 The main thread converts input events to non-pepper events and puts them on |
24 a queue. The worker thread pulls them off of the queue, converts them to a | 24 a queue. The worker thread pulls them off of the queue, converts them to a |
25 string, and then uses CallOnMainThread so that PostMessage can be send the | 25 string, and then uses CallOnMainThread so that PostMessage can be send the |
26 result of the worker thread to the browser.""", | 26 result of the worker thread to the browser.""", |
27 'INFO': 'Multithreaded event handling.' | 27 'INFO': 'Multithreaded event handling.' |
28 } | 28 } |
29 | 29 |
OLD | NEW |