Skip to content

Commit

Permalink
libbladeRF: Updated outdated comments
Browse files Browse the repository at this point in the history
The situation has changed since thread-safety changes in 7b0cc24.
  • Loading branch information
jynik committed Oct 21, 2014
1 parent da19ed2 commit de761af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions host/libraries/libbladeRF/src/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,6 @@ int async_init_stream(struct bladerf_stream **stream,
return status;
}

/* No device control calls may be made in this function and the associated
* backend stream implementations, as the stream and control functionality
* will generally be executed from separate thread contexts. */
int async_run_stream(struct bladerf_stream *stream, bladerf_module module)
{
int status;
Expand Down
6 changes: 2 additions & 4 deletions host/libraries/libbladeRF/src/bladerf.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,12 +769,10 @@ int bladerf_init_stream(struct bladerf_stream **stream,
return status;
}

/* Reminder: No device control calls may be made down through bladerf_stream or
* bladerf_submit_stream_buffer here downward, as we can't
* hold the control lock.
*/
int bladerf_stream(struct bladerf_stream *stream, bladerf_module module)
{
/* Reminder: as we're not holding the control lock, no control calls should
* be made from this point down through the backend code */
return async_run_stream(stream, module);
}

Expand Down

0 comments on commit de761af

Please sign in to comment.