#3168 closed enhancement (fixed)

Simplify POSIX_API_Control

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: posix Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

There is no need to have a copy of the thread attributes used for the pthread_create() in POSIX_API_Control::Attributes. This is at least in line with Linux.

Attachments (1)

test.c (1.2 KB) - added by Sebastian Huber on 10/05/17 at 13:28:41.
Test program.

Download all attachments as: .zip

Change History (5)

Changed on 10/05/17 at 13:28:41 by Sebastian Huber

Attachment: test.c added

Test program.

comment:1 Changed on 10/10/17 at 05:43:49 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In af9115f3/rtems:

posix: Simplify POSIX_API_Control

Return stack area via pthread_getattr_np().

Simplify

  • pthread_attr_setaffinity_np(), and
  • pthread_attr_getaffinity_np()

and let the scheduler do the more sophisticated error checks.

Make

  • pthread_setaffinity_np(),
  • pthread_getaffinity_np(),
  • pthread_attr_setaffinity_np(), and
  • pthread_attr_getaffinity_np()

available in all configurations.

Update #2514.
Close #3145.
Close #3168.

comment:2 Changed on 10/16/17 at 06:17:09 by Sebastian Huber

Component: scoreposix

comment:3 Changed on 11/02/17 at 10:25:59 by Sebastian Huber <sebastian.huber@…>

In 81fd79d/rtems:

smppsxaffinity02: Fix thread attribute usage

The pthread_getattr_np() returns now the stack address and size. Do not
use this stack for the new threads.

Update #2514.
Update #3145.
Update #3168.

comment:4 Changed on 11/09/17 at 06:27:14 by Sebastian Huber

Milestone: 4.12.05.1

Milestone renamed

Note: See TracTickets for help on using tickets.