220 4710 <4ed4041c-a458-4fc8-ae3d-7534d5d261c2@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: adrien courdavault <adrien59cadri@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: lock free traits for functions
Date: Wed, 29 May 2013 11:43:47 -0700 (PDT)
Lines: 68
Approved: news@gmane.org
Message-ID: <4ed4041c-a458-4fc8-ae3d-7534d5d261c2@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_6579_17109961.1369853027088"
X-Trace: ger.gmane.org 1369853030 27495 80.91.229.3 (29 May 2013 18:43:50 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 29 May 2013 18:43:50 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDTNJ6MCWUNRBZMYTGGQKGQERCIK3GA@isocpp.org Wed May 29 20:43:51 2013
Return-path: <std-proposals+bncBDTNJ6MCWUNRBZMYTGGQKGQERCIK3GA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qa0-f71.google.com ([209.85.216.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDTNJ6MCWUNRBZMYTGGQKGQERCIK3GA@isocpp.org>)
	id 1UhlLi-0002Yp-Dd
	for gclcip-std-proposals@m.gmane.org; Wed, 29 May 2013 20:43:50 +0200
Original-Received: by mail-qa0-f71.google.com with SMTP id g10sf1061944qah.2
        for <gclcip-std-proposals@m.gmane.org>; Wed, 29 May 2013 11:43:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-beenthere:date:from:to:message-id:subject:mime-version
         :x-original-sender:reply-to:precedence:mailing-list:list-id
         :x-google-group-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=dqo/6WYQEuWTmZJO6RLaXd+VGtUt4xDo1Ae6x+1haX8=;
        b=SKIRVj8Rj0z36Lae7EK3n4m/0g3xiD0lkin1h9VnOJshN0YEYubX4eCPNuzJzDzUY7
         NL0hERwBMB/Ikcg06bscGSlKt88s98Z1VKWYBAJkt657WoTcRY/wesnRj5h1EsNgOsZm
         aSpPM3AfqZu6rVjiknItgUuYIkl6CecOPlc4OMlsxorx4L0d6+sZajuIluSqL03m3AcN
         gh/u74hw3/xv+DcPi4JnGNqTioVnAvyW/C2oL9sjqz1qHMe4Hmzf67AYTQ9LB7e95i3j
         /Tja/U+xd+2fYAnb9b6yaKPiLz/+pfo9mslMm+hFaHW3+nJW7vP0m7t+VyzIbAlQD8AR
         111A==
X-Received: by 10.224.36.66 with SMTP id s2mr2291566qad.6.1369853029503;
        Wed, 29 May 2013 11:43:49 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.37.71 with SMTP id w7ls9589qej.69.gmail; Wed, 29 May 2013
 11:43:47 -0700 (PDT)
X-Received: by 10.49.71.135 with SMTP id v7mr347726qeu.22.1369853027874;
        Wed, 29 May 2013 11:43:47 -0700 (PDT)
X-Original-Sender: adrien59cadri@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:4710
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/4710>

------=_Part_6579_17109961.1369853027088
Content-Type: text/plain; charset=ISO-8859-1

Hi

This seams to be a very simplistic request but I think it would be nice to 
have some traits to know if a function call is lock free or not.
It is not usefull for every function, but it could be for the class like 
thread obviously.
Clearly launching a thread is not, but depending on the implementation 
get_id could be;

I say that because in time critical thread you want to know it it is safe 
to do that.
In my case i want to know if I am in the time critical thread, ... problem, 
if asking for the id of the thread is not lock free I might just have break 
the rule I wanted to inforce by asking if I was in this thread,

what do you think ?

NB, if this subject has already been discussed I'm really sorry for the 
trouble

-- 

--- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en.



------=_Part_6579_17109961.1369853027088
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi<div><br></div><div>This seams to be a very simplistic request but I thin=
k it would be nice to have some traits to know if a function call is lock f=
ree or not.</div><div>It is not usefull for every function, but it could be=
 for the class like thread obviously.</div><div>Clearly launching a thread =
is not, but depending on the implementation get_id could be;</div><div><br>=
</div><div>I say that because in time critical thread you want to know it i=
t is safe to do that.</div><div>In my case i want to know if I am in the ti=
me critical thread, ... problem, if asking for the id of the thread is not =
lock free I might just have break the rule I wanted to inforce by asking if=
 I was in this thread,</div><div><br></div><div>what do you think ?</div><d=
iv><br></div><div>NB, if this subject has already been discussed I'm really=
 sorry for the trouble</div>

<p></p>

-- <br />
&nbsp;<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_6579_17109961.1369853027088--

.
