Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions | Variables
21.string.push_back.mt.cpp File Reference
#include <string>
#include <cstddef>
#include <rw_driver.h>
#include <rw_thread.h>
#include <rw_valcmp.h>
Include dependency graph for 21.string.push_back.mt.cpp:

Go to the source code of this file.

Macros

#define MAX_THREADS   32
 
#define MAX_LOOPS   100000
 

Functions

const std::string shared1 (64, '_')
 
int main (int argc, char *argv[])
 

Variables

const char to_append []
 
const std::string shared0
 
int rw_opt_nthreads = 1
 
int rw_opt_nloops = MAX_LOOPS
 

Macro Definition Documentation

◆ MAX_LOOPS

#define MAX_LOOPS   100000

Definition at line 40 of file 21.string.push_back.mt.cpp.

◆ MAX_THREADS

#define MAX_THREADS   32

21.string.push.back.mt.cpp - test exercising the therad safety of the push_back member function

$Id$

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.

Definition at line 39 of file 21.string.push_back.mt.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 141 of file 21.string.push_back.mt.cpp.

◆ shared1()

const std::string shared1 ( 64  ,
'_'   
)

Variable Documentation

◆ rw_opt_nloops

int rw_opt_nloops = MAX_LOOPS

Definition at line 58 of file 21.string.push_back.mt.cpp.

◆ rw_opt_nthreads

int rw_opt_nthreads = 1

Definition at line 55 of file 21.string.push_back.mt.cpp.

◆ shared0

const std::string shared0

Definition at line 46 of file 21.string.push_back.mt.cpp.

◆ to_append

const char to_append[]
Initial value:
= {
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
}

Definition at line 42 of file 21.string.push_back.mt.cpp.