Changeset 02ead2e in mainline


Ignore:
Timestamp:
2013-04-05T15:43:02Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4389076
Parents:
6d74977
Message:

hound: sleep and repeat while the buffer is full

Location:
uspace/srv/audio/hound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/hound_ctx.c

    r6d74977 r02ead2e  
    160160{
    161161        assert(stream);
    162         log_verbose("%p: %zu", stream, size);
    163162
    164163        if (stream->allowed_size && size > stream->allowed_size)
  • uspace/srv/audio/hound/iface.c

    r6d74977 r02ead2e  
    148148static int iface_stream_data_write(void *stream, const void *buffer, size_t size)
    149149{
    150         return hound_ctx_stream_write(stream, buffer, size);
     150        int ret = EOK;
     151        do {
     152                ret = hound_ctx_stream_write(stream, buffer, size);
     153        } while (ret == EBUSY && (async_usleep(100), 1));
     154        return ret;
    151155}
    152156
Note: See TracChangeset for help on using the changeset viewer.