From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WNOLn-0001Go-29 for ltp-list@lists.sourceforge.net; Tue, 11 Mar 2014 15:12:15 +0000 Date: Tue, 11 Mar 2014 16:11:56 +0100 From: chrubis@suse.cz Message-ID: <20140311151156.GC10778@rei> References: <1392731616-25514-1-git-send-email-alexey.kodanev@oracle.com> <20140225131932.GB13201@rei> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140225131932.GB13201@rei> Subject: Re: [LTP] [PATCH] lib/tst_res.c: synchronize access to tst_res functions List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Mike Frysinger Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net Hi! > > The patch adds synchronization mechanism which is required (tst_res.c > > uses global variables e.g. T_exitval, tst_count, T_out, ...) when tst_res > > functions are used in multi-threaded tests. > > Note: it will only work if test is linked with pthread library, also some > > functions include each other that is why recursive mutex is used (can be > > locked several times by the same thread). > > This looks good to me. > > Mike can you have a look, just to be extra sure. > Ping. -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list