Nux

lp:~smspillaz/nux/nux.fix_1097281

Created by Sam Spilsbury and last modified
Get this branch:
bzr branch lp:~smspillaz/nux/nux.fix_1097281
Only Sam Spilsbury can upload to this branch. If you are Sam Spilsbury please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Sam Spilsbury
Project:
Nux
Status:
Merged

Recent revisions

758. By Sam Spilsbury

Remove the main source too

757. By Sam Spilsbury

Implement a message-passing system in nux::WindowThread and nux::ProgramFramework.

This makes it possible to define and implement protocols for WindowThreads to
communicate with each other in a thread-safe way without having to resort to
using window system events or the like.

New file descriptors can be added for watching with a watch-callback executed
inside the window thread with nux::WindowThread::WatchFdForEvents. Only
read-data is supported right now.

When there is new data available to be read, the provided FdWatchCallback will
be called by the window thread, and executed inside the window thread. From
there, clients can safely modify data contained by the WindowThread object.

Remove a watched file descriptor with UnwatchFd.

It is safe to add file descriptors for watching during the call to the provided
ThreadUserInitFunc in CreateGUIThread. This is because the main loop
implementation must be created before those file descriptors are added for
watching (particularly in the case of GLib, because nux::WindowThread::InitGlibLoop
will use the default GMainContext the first time it is called, and then create
a new one for each window thereafter.

Added three new tests to demonstrate and cover this functionality.

[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from TestWindowThread
[ RUN ] TestWindowThread.WatchFd
[ OK ] TestWindowThread.WatchFd (3213 ms)
[ RUN ] TestWindowThread.MultiWatchFd
[ OK ] TestWindowThread.MultiWatchFd (3163 ms)
[ RUN ] TestWindowThread.OneFdEvent
[ OK ] TestWindowThread.OneFdEvent (3155 ms)
[----------] 3 tests from TestWindowThread (9532 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran. (9532 ms total)
[ PASSED ] 3 tests.

Fixed segfaulting test xtest-text-input. That test unsafely mutated object
state contained by the WindowThread running in another thread inside of the
test thread. This resulted in a null pointer dereference because it had a
side effect of calling nux::GetWindowThread () which relies on up-to-date
thread-local-storage. That test now defines a protocol to communicate to
the running program to mutate the relevant state, and then communicate back
when it has completed execution.

(LP: #1097281)

756. By Ricardo Salveti

gtest.m4: avoid using AC_CHECK_FILES because it breaks cross-compilation.

Approved by Stephen M. Webb.

755. By Daniel d'Andrada

Fix "make check" when geis is located outside /usr.

Approved by Stephen M. Webb.

754. By Andrea Azzarone

Remove no longer needed code.

Approved by Marco Trevisan (Treviño).

753. By PS Jenkins bot

Releasing 4.0.0daily13.01.25-0ubuntu1 to ubuntu.

Approved by .

752. By Łukasz Zemczak

Bump the ABI version since the latest changes in trunk modified the ABI.

Approved by Nicolas d'Offay.

751. By Nicolas d'Offay

Added linear sample gaussian blur shader which halves the loop count of our vertical and horizontal blur drastically improving performance.

Approved by Nicolas d'Offay.

750. By PS Jenkins bot

Releasing 4.0.0daily13.01.18-0ubuntu1 to ubuntu.

Approved by .

749. By Andrea Azzarone

Don't use deprecated functions. Fixes: https://bugs.launchpad.net/bugs/1100927.

Approved by Andrea Azzarone, Łukasz Zemczak, Brandon Schaefer.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:nux
This branch contains Public information 
Everyone can see this information.

Subscribers