From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9476 Path: news.gmane.org!not-for-mail From: Tomasz Sterna Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] add sched_getcpu Date: Sat, 05 Mar 2016 12:40:14 +0100 Organization: Xiaoka.com Message-ID: <1457178014.10711.15.camel@xiaoka.com> References: <1456764572-18648-1-git-send-email-nathan@nathan7.eu> <1456780194.12169.25.camel@xiaoka.com> <20160229213057.GE9349@brightrain.aerifal.cx> <1456864521.12169.35.camel@xiaoka.com> <20160301223419.GL9349@brightrain.aerifal.cx> <1456951613.12169.42.camel@xiaoka.com> <20160302211924.GI29662@port70.net> <20160302232635.GP9349@brightrain.aerifal.cx> <1457130109.10711.8.camel@xiaoka.com> <20160304233324.GB9349@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-TAMJ+F7umAQBCxQPWiRh" X-Trace: ger.gmane.org 1457178052 798 80.91.229.3 (5 Mar 2016 11:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2016 11:40:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9489-gllmg-musl=m.gmane.org@lists.openwall.com Sat Mar 05 12:40:52 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1acAZo-0004mf-84 for gllmg-musl@m.gmane.org; Sat, 05 Mar 2016 12:40:52 +0100 Original-Received: (qmail 29778 invoked by uid 550); 5 Mar 2016 11:40:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 28635 invoked from network); 5 Mar 2016 11:40:32 -0000 In-Reply-To: <20160304233324.GB9349@brightrain.aerifal.cx> X-Mailer: Evolution 3.18.5.1 (3.18.5.1-1.fc23) X-Scan-Signature: xkh98.infr.xiaoka.com 1acAZI-0006OC-QP d98dd32cef211c320f536fa58d6460c4 Xref: news.gmane.org gmane.linux.lib.musl.general:9476 Archived-At: --=-TAMJ+F7umAQBCxQPWiRh Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable W dniu 04.03.2016, pi=C4=85 o godzinie 18=E2=88=B633 -0500, u=C5=BCytkownik= Rich Felker napisa=C5=82: > The thread API I am implementing differs much to pthreads, which > > required a lot of glue code translating one API to another and felt > > hand wrenching. > Are you sure? The only functions you really need to use pthreads are > pthread_create and one of either pthread_join or pthread_detach. Well... I still have the source of the previous attempt of implementing this API over standard glibc on disk. And it is ugly. But it is possible that it's just a matter of this particular implementation. Unfortunately the original author is MIA. With the experience on doing it on raw clone and futex and knowledge you just provided in this thread, it should not be that ugly this time around. :) --=20 /o__ FORTUNE PROVIDES QUESTIONS FOR THE GREAT ANSWERS: #31 (_<^' A: Chicken Teriyaki. --=-TAMJ+F7umAQBCxQPWiRh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJW2sWeAAoJEMbh7DlLbipiPI8H+gJIaNVBmluZMbyqBKBcOAn4 yY8HzXCv13bAL6aZ+STlrUiFeUwiqNt27x7wXPd1Tvds2cTI4IYUYJ0St6N3t7FN YiRUzesSVXRh0qKabpEfXLW8GgwJY+O2Dw98y2X1LgNC9/cw6eq4hnCP48hdjjnL ViyZXPE62MpI7kwOWcCh59/bHXNtpyGYEdIa1C+Yc2Rt8JyHtG6aJsLsCDqXZE15 kIY1iE5Kf19MqQdMw9pz0K1eGx6zJAYky5jlT/nea35xEe8DTAcP8IGVleR+0Ehx AaPTqKqSNdOEgD8nqnyeOtl9HmddkweyxYTZ0tJ++wM0NEEOjPNTlGBQR58dSM0= =c6hn -----END PGP SIGNATURE----- --=-TAMJ+F7umAQBCxQPWiRh--