Changeset 78aca91b in mainline for uspace/srv/audio/hound/iface.c


Ignore:
Timestamp:
2013-04-06T18:02:40Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
98af9cc
Parents:
2c0b348
Message:

hound: Use synchronization primitives instead of sleep waiting

File:
1 edited

Legend:

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

    r2c0b348 r78aca91b  
    8383        if (!ctx)
    8484                return false;
    85         log_info("%s: %p, %d", __FUNCTION__, server, id);
    8685        return hound_ctx_is_record(ctx);
    8786}
     
    150149static int iface_stream_data_write(void *stream, const void *buffer, size_t size)
    151150{
    152         int ret = EOK;
    153         do {
    154                 ret = hound_ctx_stream_write(stream, buffer, size);
    155         } while (ret == EBUSY && (async_usleep(100), 1));
    156         return ret;
     151        return hound_ctx_stream_write(stream, buffer, size);
    157152}
    158153
Note: See TracChangeset for help on using the changeset viewer.