Skip to content

Commit

Permalink
iiod: responder: shorten the thread names
Browse files Browse the repository at this point in the history
This is in preparation of adding support for naming threads (in unix).
This is done since pthread_setname_np(3) does not support names bigger
than 16 characters, including the terminating null byte.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
  • Loading branch information
nunojsa committed Jan 30, 2025
1 parent 480e8e1 commit ee3a89b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iiod/responder.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,13 @@ static void handle_create_buffer(struct parser_pdata *pdata,
}

entry->enqueue_task = iio_task_create(buffer_enqueue_block, entry,
"buffer-enqueue-thd");
"enqueue-thd");
ret = iio_err(entry->enqueue_task);
if (ret)
goto err_free_mask;

entry->dequeue_task = iio_task_create(buffer_dequeue_block, entry,
"buffer-dequeue-thd");
"dequeue-thd");
ret = iio_err(entry->dequeue_task);
if (ret)
goto err_destroy_enqueue_task;
Expand Down Expand Up @@ -970,7 +970,7 @@ static void handle_create_evstream(struct parser_pdata *pdata,
}

entry->task = iio_task_create(evstream_read, entry,
"evstream-read-thd");
"event-read-thd");
ret = iio_err(entry->task);
if (ret) {
iio_event_stream_destroy(entry->stream);
Expand Down

0 comments on commit ee3a89b

Please sign in to comment.