Kurtis Rader
4ffb0adb78
lint cleanups
2017-02-11 21:30:38 -08:00
Kurtis Rader
5b6cc5af6d
time for another make style-all
...
Gotta keep the entropy (i.e., disorder) from increasing.
2017-01-26 20:05:46 -08:00
ridiculousfish
37578d8b39
Add some additional commenting around iothreads
2017-01-26 09:40:18 -08:00
ridiculousfish
2f29473efc
Remove legacy iothread_perform templates
...
We no longer need to have overloads for function pointers.
2017-01-26 09:40:18 -08:00
ridiculousfish
a3dbca90d5
g++-friendly 'Rework iothread_perform for void return types'
...
Allows iothread_perform to work with void return types on both
g++ and clang
This reverts commit 1040b255c7
and reintroduces ac9a0f0dbf
2017-01-26 09:40:17 -08:00
Fabian Homborg
1040b255c7
Revert "Rework iothread_perform for void return types"
...
This reverts commit ac9a0f0dbf
, which massively broke fish built with gcc.
Fixes #3770 .
2017-01-24 17:33:03 +01:00
ridiculousfish
ac9a0f0dbf
Rework iothread_perform for void return types
...
Need to use a template specialization so we don't try to create
a variable of type void
2017-01-23 13:56:43 -08:00
ridiculousfish
1cfbd62266
Enable use of std::function and lambdas in iothread_perform
2017-01-23 11:35:22 -08:00
ridiculousfish
520e567390
Eliminate the old-style iothread_perform_on_main
...
All clients now use the std::function form (i.e. lambdas)
2017-01-23 10:46:42 -08:00
ridiculousfish
e1adc3a6b2
Make iothread's perform_on_main use std::function
...
This will allow clients to use lambdas instead of having to
define an out-of-line function
2017-01-23 10:37:16 -08:00
ridiculousfish
216f7d912a
Clean up some of the memory management in iothread.cpp
...
Store requests directly on the queue, instead of via a heap allocation
2017-01-23 09:56:02 -08:00
Kurtis Rader
483b798863
restyle iothread module to match project style
...
Reduces lint errors from 41 to 26 (-37%). Line count from 444 to 423 (-5%).
Another step in resolving issue #2902 .
2016-05-01 21:54:54 -07:00
Kurtis Rader
1f06e5f0b9
add better support for IWYU and fix things
...
Remove the "make iwyu" build target. Move the functionality into the
recently introduced lint.fish script. Fix a lot, but not all, of the
include-what-you-use errors. Specifically, it fixes all of the IWYU errors
on my OS X server but only removes some of them on my Ubuntu 14.04 server.
Fixes #2957
2016-04-26 15:02:22 -07:00
ridiculousfish
b4f53143b0
Migrate source files into src/ directory
...
This change moves source files into a src/ directory,
and puts object files into an obj/ directory. The Makefile
and xcode project are updated accordingly.
Fixes #1866
2015-07-24 00:59:27 -07:00