Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset c5d6f9cf in mainline


Ignore:
Timestamp:
2013-04-05T14:32:53Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
f04603e
Parents:
704baed
Message:

libhound: implement drain_on_exit on the client side

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/hound/src/client.c

    r704baed rc5d6f9cf  
    5454        async_exch_t *exch;
    5555        hound_context_t *context;
     56        int flags;
    5657} hound_stream_t;
    5758
     
    215216                new_stream->format = format;
    216217                new_stream->context = hound;
     218                new_stream->flags = flags;
    217219                const int ret = hound_service_stream_enter(new_stream->exch,
    218220                    hound->id, flags, format, bsize);
     
    230232{
    231233        if (stream) {
    232                 // TODO drain?
     234                if (stream->flags & HOUND_STREAM_DRAIN_ON_EXIT)
     235                        hound_service_stream_drain(stream->exch);
    233236                hound_service_stream_exit(stream->exch);
    234237                async_exchange_end(stream->exch);
     
    258261        assert(hound);
    259262        if (!hound->main.stream)
    260                 hound->main.stream = hound_stream_create(hound, 0,
    261                     hound->main.format, hound->main.bsize);
     263                hound->main.stream = hound_stream_create(hound,
     264                    HOUND_STREAM_DRAIN_ON_EXIT,hound->main.format,
     265                    hound->main.bsize);
    262266        return hound->main.stream;
    263267}
Note: See TracChangeset for help on using the changeset viewer.