stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r425530 - in /incubator/stdcxx/trunk/tests: diagnostics/ include/ src/ strings/ support/ utilities/
Date Tue, 25 Jul 2006 21:39:51 GMT
Author: sebor
Date: Tue Jul 25 14:39:50 2006
New Revision: 425530

URL: http://svn.apache.org/viewvc?rev=425530&view=rev
Log:
2006-07-25  Martin Sebor  <sebor@roguewave.com>

	* rwthread.h: Renamed...
	* rw_thread.h: ...to this according to convention.
	* rwthread.cpp: Renamed...
	* thread.cpp: ...to this.
	* push_back_mt.cpp (<rw_thread.h>): Included instead of rwthread.h.
	* atomic_add.cpp (<rw_thread.h>): Same.
	* atomic_xchg.cpp (<rw_thread.h>): Same.
	* temp_buffer_mt.cpp (<rw_thread.h>): Same.
	* exceptions_mt.cpp (<rw_thread.h>): Same. Replaced a call
	to memset() with zero-initialization of POD.

Added:
    incubator/stdcxx/trunk/tests/include/rw_thread.h
      - copied unchanged from r423616, incubator/stdcxx/trunk/tests/include/rwthread.h
    incubator/stdcxx/trunk/tests/src/thread.cpp
      - copied, changed from r425522, incubator/stdcxx/trunk/tests/src/rwthread.cpp
Removed:
    incubator/stdcxx/trunk/tests/include/rwthread.h
    incubator/stdcxx/trunk/tests/src/rwthread.cpp
Modified:
    incubator/stdcxx/trunk/tests/diagnostics/19.exceptions.mt.cpp
    incubator/stdcxx/trunk/tests/strings/21.string.push_back.mt.cpp
    incubator/stdcxx/trunk/tests/support/atomic_add.cpp
    incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp
    incubator/stdcxx/trunk/tests/utilities/20.temp.buffer.mt.cpp

Modified: incubator/stdcxx/trunk/tests/diagnostics/19.exceptions.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/diagnostics/19.exceptions.mt.cpp?rev=425530&r1=425529&r2=425530&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/diagnostics/19.exceptions.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/diagnostics/19.exceptions.mt.cpp Tue Jul 25 14:39:50 2006
@@ -1,28 +1,29 @@
 /***************************************************************************
  *
- * exceptions_mt.cpp - test exercising the thread safety
- *                     of C++ Standard Library exception classes
+ * 19.exceptions.mt.cpp - test exercising the thread safety
+ *                        of C++ Standard Library exception classes
  *
  * $Id$
  *
  ***************************************************************************
  *
- * Copyright 2005-2006 The Apache Software Foundation or its licensors,
- * as applicable.
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
  *
- * Copyright 2005-2006 Rogue Wave Software.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 2005-2006 Rogue Wave Software.
  * 
  **************************************************************************/
 
@@ -32,10 +33,10 @@
 #include <cassert>     // for assert
 #include <cstdio>      // for printf()
 
-#include <rw_alarm.h>  // for rw_alarm()
 #include <cmdopt.h>
 #include <driver.h>
-#include <rwthread.h>
+#include <rw_alarm.h>    // for rw_alarm()
+#include <rw_thread.h>   // for rw_thread_pool()
 #include <valcmp.h>
 
 /**************************************************************************/
@@ -309,8 +310,7 @@
 
 #else   // if !(0 < NTHREADS)
 
-    rw_thread_t tid;
-    std::memset (&tid, 0, sizeof tid);
+    rw_thread_t tid = rw_thread_t ();
 
     test_single_exception (&tid);
 

Copied: incubator/stdcxx/trunk/tests/src/thread.cpp (from r425522, incubator/stdcxx/trunk/tests/src/rwthread.cpp)
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/thread.cpp?p2=incubator/stdcxx/trunk/tests/src/thread.cpp&p1=incubator/stdcxx/trunk/tests/src/rwthread.cpp&r1=425522&r2=425530&rev=425530&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/rwthread.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/thread.cpp Tue Jul 25 14:39:50 2006
@@ -1,6 +1,6 @@
 /************************************************************************
  *
- * rwthread.cpp - definitions of testsuite thread helpers
+ * thread.cpp - definitions of testsuite thread helpers
  *
  * $Id$
  *
@@ -29,8 +29,8 @@
 // expand _TEST_EXPORT macros
 #define _RWSTD_TEST_SRC
 
-#include <rwthread.h>
-#include <stddef.h>
+#include <rw_thread.h>
+#include <stddef.h>     // for size_t
 
 /**************************************************************************/
 

Modified: incubator/stdcxx/trunk/tests/strings/21.string.push_back.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.string.push_back.mt.cpp?rev=425530&r1=425529&r2=425530&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/strings/21.string.push_back.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/strings/21.string.push_back.mt.cpp Tue Jul 25 14:39:50 2006
@@ -1,23 +1,30 @@
 /***************************************************************************
  *
- * 21.string.push_back.mt.cpp - test exercising the thread safety
+ * 21.string.push.back.mt.cpp - test exercising the therad safety
  *                              of the push_back member function
  *
  * $Id$
  *
  ***************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
  *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 2005-2006 Rogue Wave Software.
+ * 
  **************************************************************************/
 
 #include <string>       // for string
@@ -25,7 +32,7 @@
 #include <cstdio>       // for putc(), puts(), ...
 
 #include <driver.h>     // for rw_test()
-#include <rwthread.h>   // for rw_thread_pool()
+#include <rw_thread.h>  // for rw_thread_pool(), ...
 #include <valcmp.h>     // for rw_strncmp()
 
 /**************************************************************************/

Modified: incubator/stdcxx/trunk/tests/support/atomic_add.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/support/atomic_add.cpp?rev=425530&r1=425529&r2=425530&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/support/atomic_add.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/atomic_add.cpp Tue Jul 25 14:39:50 2006
@@ -1,21 +1,29 @@
 /***************************************************************************
  *
- * atomic_add.cpp - test exercising atomic_preincrement() template
+ * 18.atomic.add.cpp - test exercising the __rw_atomic_preincrement()
+ *                     and __rw_atomic_predecrement function templates
  *
  * $Id$
  *
  ***************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 2003-2006 Rogue Wave Software.
  * 
  **************************************************************************/
 
@@ -27,7 +35,7 @@
 #include <any.h>
 #include <cmdopt.h>
 #include <driver.h>
-#include <rwthread.h>
+#include <rw_thread.h>   // for rw_thread_create()
 
 /**************************************************************************/
 

Modified: incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp?rev=425530&r1=425529&r2=425530&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/atomic_xchg.cpp Tue Jul 25 14:39:50 2006
@@ -1,22 +1,30 @@
 /***************************************************************************
  *
- * atomic_xchg.cpp - test exercising atomic_exchange() template
+ * 18.atomic.xchg.cpp - test exercising the __rw_atomic_exchange() function
+ *                      template
  *
  * $Id$
  *
  ***************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
- * 
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 2003-2006 Rogue Wave Software.
+ *
  **************************************************************************/
 
 #include <stdio.h>
@@ -27,7 +35,7 @@
 #include <any.h>
 #include <cmdopt.h>
 #include <driver.h>
-#include <rwthread.h>
+#include <rw_thread.h>   // for rw_thread_create()
 
 /**************************************************************************/
 

Modified: incubator/stdcxx/trunk/tests/utilities/20.temp.buffer.mt.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/utilities/20.temp.buffer.mt.cpp?rev=425530&r1=425529&r2=425530&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/utilities/20.temp.buffer.mt.cpp (original)
+++ incubator/stdcxx/trunk/tests/utilities/20.temp.buffer.mt.cpp Tue Jul 25 14:39:50 2006
@@ -8,16 +8,23 @@
  *
  ***************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 2005-2006 Rogue Wave Software.
  * 
  **************************************************************************/
 
@@ -29,8 +36,8 @@
 #include <cstdio>    // for printf()
 #include <cstring>   // for memset()
 
-#include <driver.h>
-#include <rwthread.h>
+#include <driver.h>      // for rw_test(), ...
+#include <rw_thread.h>   // for rw_thread_create(), ...
 
 /**************************************************************************/
 



Mime
View raw message