runtime: refactor level-triggered IO support
Remove GOOS_solaris ifdef from netpoll code,
instead introduce runtime edge/level triggered IO flag.
Replace armread/armwrite with a single arm(mode) function,
that's how all other interfaces look like and these functions
will need to do roughly the same thing anyway.
On 2014/01/22 07:54:12, dvyukov wrote: > Hello mailto:golang-codereviews@googlegroups.com, > > I'd like you to review ...
11 years, 5 months ago
(2014-02-05 22:49:15 UTC)
#2
On 2014/01/22 07:54:12, dvyukov wrote:
> Hello mailto:golang-codereviews@googlegroups.com,
>
> I'd like you to review this change to
> https://dvyukov%40google.com@code.google.com/p/go/
Thanks Dmitry. Could static bool edgetriggered be moved into an enum in
os_$GOOS.h instead?
On 2014/02/05 22:49:15, dfc wrote: > On 2014/01/22 07:54:12, dvyukov wrote: > > Hello mailto:golang-codereviews@googlegroups.com, ...
11 years, 4 months ago
(2014-02-06 14:50:34 UTC)
#3
On 2014/02/05 22:49:15, dfc wrote:
> On 2014/01/22 07:54:12, dvyukov wrote:
> > Hello mailto:golang-codereviews@googlegroups.com,
> >
> > I'd like you to review this change to
> > https://dvyukov%40google.com@code.google.com/p/go/
>
> Thanks Dmitry. Could static bool edgetriggered be moved into an enum in
> os_$GOOS.h instead?
I don't like conditional branching and I am lazy, so PTAL :)
> On 7 Feb 2014, at 1:50, dvyukov@google.com wrote: > >> On 2014/02/05 22:49:15, dfc ...
11 years, 4 months ago
(2014-02-06 19:47:18 UTC)
#4
> On 7 Feb 2014, at 1:50, dvyukov@google.com wrote:
>
>> On 2014/02/05 22:49:15, dfc wrote:
>> On 2014/01/22 07:54:12, dvyukov wrote:
>> > Hello mailto:golang-codereviews@googlegroups.com,
>> >
>> > I'd like you to review this change to
>> > https://dvyukov%40google.com@code.google.com/p/go/
>
>> Thanks Dmitry. Could static bool edgetriggered be moved into an enum
> in
>> os_$GOOS.h instead?
>
> I don't like conditional branching and I am lazy, so PTAL :)
Where is Solaris defined? Is it a flag passed to the compiler via -D ?
>
> https://codereview.appspot.com/55500044/
It's enum in runtime.h On Thu, Feb 6, 2014 at 11:47 PM, Dave Cheney <dave@cheney.net> ...
11 years, 4 months ago
(2014-02-06 19:53:28 UTC)
#5
It's enum in runtime.h
On Thu, Feb 6, 2014 at 11:47 PM, Dave Cheney <dave@cheney.net> wrote:
>
>
>
>
>> On 7 Feb 2014, at 1:50, dvyukov@google.com wrote:
>>
>>> On 2014/02/05 22:49:15, dfc wrote:
>>> On 2014/01/22 07:54:12, dvyukov wrote:
>>> > Hello mailto:golang-codereviews@googlegroups.com,
>>> >
>>> > I'd like you to review this change to
>>> > https://dvyukov%40google.com@code.google.com/p/go/
>>
>>> Thanks Dmitry. Could static bool edgetriggered be moved into an enum
>> in
>>> os_$GOOS.h instead?
>>
>> I don't like conditional branching and I am lazy, so PTAL :)
>
> Where is Solaris defined? Is it a flag passed to the compiler via -D ?
>
>
>>
>> https://codereview.appspot.com/55500044/
*** Submitted as https://code.google.com/p/go/source/detail?r=cc6826ec23c7 *** runtime: refactor level-triggered IO support Remove GOOS_solaris ifdef from netpoll ...
11 years, 4 months ago
(2014-02-12 18:24:48 UTC)
#7
*** Submitted as https://code.google.com/p/go/source/detail?r=cc6826ec23c7 ***
runtime: refactor level-triggered IO support
Remove GOOS_solaris ifdef from netpoll code,
instead introduce runtime edge/level triggered IO flag.
Replace armread/armwrite with a single arm(mode) function,
that's how all other interfaces look like and these functions
will need to do roughly the same thing anyway.
LGTM=rsc
R=golang-codereviews, dave, rsc
CC=golang-codereviews
https://codereview.appspot.com/55500044
Issue 55500044: code review 55500044: runtime: refactor level-triggered IO support
(Closed)
Created 11 years, 5 months ago by dvyukov
Modified 11 years, 4 months ago
Reviewers:
Base URL:
Comments: 0