Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#2087 assigned enhancement

Merge some samples from Livermore pthread Examples

Reported by: Christopher Kerl Owned by: Joel Sherrill
Priority: highest Milestone: Indefinite
Component: unspecified Version:
Severity: minor Keywords:
Cc: gedare@… Blocked By:
Blocking:

Description (last modified by Gedare Bloom)

This is a new sample that I've adapted from the Lawrence Livermore POSIX Pthreads tutorial: https://computing.llnl.gov/tutorials/pthreads/
This is the first in a planned series of examples for RTEMS POSIX development. This one shows how to create/join/end pthreads.
Please tell if you have any comments/suggestions.
~Christopher Kerl

Attachments (2)

pthread.tar.gz (7.1 KB) - added by Christopher Kerl on 02/01/13 at 20:33:16.
The sample folder.
0001-Add-pthread-example.patch (6.7 KB) - added by Marçal Comajoan Cara on 12/09/18 at 16:18:18.
Patch to add the example to the examples-v2 repository

Download all attachments as: .zip

Change History (17)

Changed on 02/01/13 at 20:33:16 by Christopher Kerl

Attachment: pthread.tar.gz added

The sample folder.

comment:1 Changed on 02/01/13 at 21:03:39 by Gedare Bloom

Cc: Gedare Bloom added

comment:2 Changed on 02/02/13 at 00:48:16 by Christopher Kerl

Sorry that I did not do it right. I'm still learning about this patch system.

comment:3 Changed on 04/11/14 at 19:29:10 by Gedare Bloom

Milestone: 4.114.12

comment:4 Changed on 11/20/14 at 03:31:07 by Chris Johns

Milestone: 4.124.11

comment:5 Changed on 11/24/14 at 18:34:44 by Joel Sherrill

Description: modified (diff)
Summary: [NEW SAMPLE]: Pthread 1Livermore Pthread Examples Ported to RTEMS

comment:6 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

comment:7 Changed on 12/19/14 at 05:06:18 by Gedare Bloom

Priority: normalhighest

Bump priority to highest for tickets with a fix attached or seemingly simple fix proposed in the description or comments.

comment:8 Changed on 02/19/15 at 21:39:43 by Gedare Bloom

Description: modified (diff)
Milestone: 4.115.0

I think we should consider putting these into a separate repository or into examples-v2. Bumping milestone.

comment:9 Changed on 02/19/15 at 21:46:21 by Joel Sherrill

It should be in examples. I think Jennifer and I looked at merging this and there was some work to do. May have just been putting it in examples.

comment:10 Changed on 08/13/17 at 23:43:00 by Chris Johns

Milestone: 5.0Indefinite
Owner: changed from Jennifer Averett to Joel Sherrill
Status: newassigned
Version: 4.11

Is this will valid?

comment:11 Changed on 10/10/17 at 06:46:55 by Sebastian Huber

Component: testingunspecified

comment:12 Changed on 12/09/18 at 09:10:15 by Marçal Comajoan Cara

I think that this is not valid anymore because the example uses the coverhd.h header which was removed in RTEMS 5 (see https://git.rtems.org/rtems/commit/?id=e58e29fdb9dc1ba516691d9df373b2bdaa480f51).

comment:13 in reply to:  12 Changed on 12/09/18 at 16:17:24 by Marçal Comajoan Cara

Replying to Sal:

I think that this is not valid anymore because the example uses the coverhd.h header which was removed in RTEMS 5 (see https://git.rtems.org/rtems/commit/?id=e58e29fdb9dc1ba516691d9df373b2bdaa480f51).

I found that actually the coverhd.h header is not necessary, so I've been able to make the attached patch which adds the example in the examples-v2 repository and works as expected.

Changed on 12/09/18 at 16:18:18 by Marçal Comajoan Cara

Patch to add the example to the examples-v2 repository

comment:14 Changed on 12/09/18 at 17:05:29 by Joel Sherrill

Summary: [NEW SAMPLE]: Pthread 1Merge some samples from Livermore pthread Examples

comment:15 Changed on 12/09/18 at 17:09:52 by Joel Sherrill

Cc: joel.sherrill@… removed
Note: See TracTickets for help on using tickets.