mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Jens Gustedt <Jens.Gustedt@inria.fr>
To: musl@lists.openwall.com
Subject: [PATCH 0/8] C thread patch series, v. 8.3 and 9.4
Date: Sat, 30 Aug 2014 20:46:11 +0200	[thread overview]
Message-ID: <cover.1409423162.git.Jens.Gustedt@inria.fr> (raw)

This time this comes in a series of 7+1 patches, that each groups some
features together as you may see in the summary below.

The first 7 patches together implement a version of C threads (my v. 8.3) as they
are described in C11 section 7.26. It is entirely based on musl's
pthread implementation, and since C11 leaves a lot of leeway for
interpretation, it follows POSIX semantics wherever this is possible.

The 8th patch is optional, and implements a stricter separation
between pthread_create and thrd_create, my version 9.4.

Jens Gustedt (7):
  interface additions for the C thread implementation
  additions to src/time
  use weak symbols for the POSIX functions that will be used by C
    threads
  add the functions for tss_t and once_flag
  add the functions for mtx_t
  add the functions for cnd_t
  add the thrd_xxxxxx functions

 arch/arm/bits/alltypes.h.in          |   10 +++-
 arch/i386/bits/alltypes.h.in         |   10 +++-
 arch/microblaze/bits/alltypes.h.in   |   10 +++-
 arch/mips/bits/alltypes.h.in         |   10 +++-
 arch/or1k/bits/alltypes.h.in         |   10 +++-
 arch/powerpc/bits/alltypes.h.in      |   10 +++-
 arch/sh/bits/alltypes.h.in           |   10 +++-
 arch/x32/bits/alltypes.h.in          |   10 +++-
 arch/x86_64/bits/alltypes.h.in       |   10 +++-
 include/alltypes.h.in                |   10 ++++
 include/threads.h                    |  110 ++++++++++++++++++++++++++++++++++
 include/time.h                       |   11 ++++
 src/mman/mprotect.c                  |    4 +-
 src/sched/thrd_yield.c               |    7 +++
 src/thread/__timedwait.c             |    9 ++-
 src/thread/call_once.c               |    7 +++
 src/thread/cnd_broadcast.c           |    9 +++
 src/thread/cnd_destroy.c             |    5 ++
 src/thread/cnd_init.c                |    9 +++
 src/thread/cnd_signal.c              |    9 +++
 src/thread/cnd_timedwait.c           |   14 +++++
 src/thread/cnd_wait.c                |   10 ++++
 src/thread/mtx_destroy.c             |    5 ++
 src/thread/mtx_init.c                |   10 ++++
 src/thread/mtx_lock.c                |   13 ++++
 src/thread/mtx_timedlock.c           |   18 ++++++
 src/thread/mtx_trylock.c             |   21 +++++++
 src/thread/mtx_unlock.c              |    9 +++
 src/thread/pthread_cond_timedwait.c  |   12 +++-
 src/thread/pthread_create.c          |   62 +++++++++++++++----
 src/thread/pthread_detach.c          |    8 ++-
 src/thread/pthread_getspecific.c     |    5 +-
 src/thread/pthread_join.c            |    8 ++-
 src/thread/pthread_key_create.c      |    7 ++-
 src/thread/pthread_mutex_lock.c      |    8 ++-
 src/thread/pthread_mutex_timedlock.c |    4 +-
 src/thread/pthread_mutex_trylock.c   |    4 +-
 src/thread/pthread_mutex_unlock.c    |    4 +-
 src/thread/pthread_once.c            |    4 +-
 src/thread/pthread_setcancelstate.c  |    4 +-
 src/thread/pthread_testcancel.c      |    4 +-
 src/thread/thrd_current.c            |   11 ++++
 src/thread/thrd_detach.c             |   12 ++++
 src/thread/thrd_equal.c              |    6 ++
 src/thread/thrd_join.c               |   16 +++++
 src/thread/tss_create.c              |   11 ++++
 src/thread/tss_delete.c              |    7 +++
 src/thread/tss_set.c                 |   13 ++++
 src/time/thrd_sleep.c                |   26 ++++++++
 src/time/timespec_get.c              |   31 ++++++++++
 50 files changed, 606 insertions(+), 41 deletions(-)
 create mode 100644 include/threads.h
 create mode 100644 src/sched/thrd_yield.c
 create mode 100644 src/thread/call_once.c
 create mode 100644 src/thread/cnd_broadcast.c
 create mode 100644 src/thread/cnd_destroy.c
 create mode 100644 src/thread/cnd_init.c
 create mode 100644 src/thread/cnd_signal.c
 create mode 100644 src/thread/cnd_timedwait.c
 create mode 100644 src/thread/cnd_wait.c
 create mode 100644 src/thread/mtx_destroy.c
 create mode 100644 src/thread/mtx_init.c
 create mode 100644 src/thread/mtx_lock.c
 create mode 100644 src/thread/mtx_timedlock.c
 create mode 100644 src/thread/mtx_trylock.c
 create mode 100644 src/thread/mtx_unlock.c
 create mode 100644 src/thread/thrd_current.c
 create mode 100644 src/thread/thrd_detach.c
 create mode 100644 src/thread/thrd_equal.c
 create mode 100644 src/thread/thrd_join.c
 create mode 100644 src/thread/tss_create.c
 create mode 100644 src/thread/tss_delete.c
 create mode 100644 src/thread/tss_set.c
 create mode 100644 src/time/thrd_sleep.c
 create mode 100644 src/time/timespec_get.c

-- 
1.7.10.4



             reply	other threads:[~2014-08-30 18:46 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-30 18:46 Jens Gustedt [this message]
2014-08-30 18:46 ` [PATCH 1/8] interface additions for the C thread implementation Jens Gustedt
2014-08-30 18:46 ` [PATCH 2/8] additions to src/time Jens Gustedt
2014-08-31  0:13   ` Rich Felker
2014-08-31  7:15     ` Jens Gustedt
2014-08-31 12:45       ` Rich Felker
2014-08-30 18:46 ` [PATCH 3/8] use weak symbols for the POSIX functions that will be used by C threads Jens Gustedt
2014-08-31  0:17   ` Rich Felker
2014-08-31  7:18     ` Jens Gustedt
2014-08-30 18:47 ` [PATCH 4/8] add the functions for tss_t and once_flag Jens Gustedt
2014-08-30 18:47 ` [PATCH 5/8] add the functions for mtx_t Jens Gustedt
2014-08-30 18:47 ` [PATCH 6/8] add the functions for cnd_t Jens Gustedt
2014-08-31  0:35   ` Rich Felker
2014-08-31  7:26     ` Jens Gustedt
2014-08-30 18:47 ` [PATCH 7/8] add the thrd_xxxxxx functions Jens Gustedt
2014-08-31  0:46   ` Rich Felker
2014-08-31  7:57     ` Jens Gustedt
2014-08-31  9:51       ` Alexander Monakov
2014-08-31 10:50         ` Jens Gustedt
2014-08-31 11:06           ` Alexander Monakov
2014-08-31 11:31             ` Szabolcs Nagy
2014-08-31 12:57       ` Rich Felker
2014-08-31 13:19         ` Jens Gustedt
2014-08-31 14:05           ` Rich Felker
2014-08-31 15:07             ` Jens Gustedt
2014-08-31 16:06               ` Rich Felker
2014-08-31 16:36                 ` Jens Gustedt
2014-08-31 17:02                   ` Rich Felker
2014-08-31 19:10                     ` Jens Gustedt
2014-09-01  0:04                       ` Rich Felker
2014-08-30 18:47 ` [PATCH 8/8] Separate pthread_create and thrd_create Jens Gustedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1409423162.git.Jens.Gustedt@inria.fr \
    --to=jens.gustedt@inria.fr \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).