Author: sebor
Date: Tue Jul 25 13:45:02 2006
New Revision: 425522
URL: http://svn.apache.org/viewvc?rev=425522&view=rev
Log:
2006-07-25 Anton Pevtsov <[EMAIL PROTECTED]>
* rwthread.cpp (rw_thread_pool): Passed the value of the thread
argument rather than its address to the thread being created.
Modified:
incubator/stdcxx/trunk/tests/src/rwthread.cpp
Modified: incubator/stdcxx/trunk/tests/src/rwthread.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/rwthread.cpp?rev=425522&r1=425521&r2=425522&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/src/rwthread.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/rwthread.cpp Tue Jul 25 13:45:02 2006
@@ -6,23 +6,30 @@
*
************************************************************************
*
- * 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.
*
**************************************************************************/
// expand _TEST_EXPORT macros
#define _RWSTD_TEST_SRC
-#include <rwthread.h>
+#include <rwthread.h>
#include <stddef.h>
/**************************************************************************/
@@ -394,7 +401,7 @@
// when the thr_arg pointer is 0 pass the address
// of each thread's id as the argument to thr_proc
- void* const next_arg = thr_arg ? thr_arg + i : (void*)(thr_id + i);
+ void* const next_arg = thr_arg ? thr_arg [i] : (void*)(thr_id + i);
if (rw_thread_create (thr_id + i, 0, thr_proc, next_arg)) {
if (delete_ids)