Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Macros | Functions | Variables
22.locale.messages.mt.cpp File Reference
#include <locale>
#include <rw_driver.h>
#include <rw_locale.h>
#include <rw_thread.h>
#include <rw_process.h>
#include <rw_file.h>
#include <rw_valcmp.h>
#include <cstring>
#include <cstdio>
Include dependency graph for 22.locale.messages.mt.cpp:

Go to the source code of this file.

Data Structures

struct  MyMessageData
 

Macros

#define MAX_CATALOGS   32
 
#define MAX_THREADS   32
 
#define MAX_LOOPS   100000
 
#define MAX_SETS   5
 
#define MAX_MESSAGES   5
 

Functions

int msg_id (int set, int id)
 
int main (int argc, char *argv[])
 

Variables

int opt_ncatalogs = 11
 
int opt_nthreads = 1
 
int opt_nloops = 10000
 
int opt_nlocales = MAX_THREADS
 
int opt_shared_locale
 
int opt_timeout = 60
 
struct MyMessageData my_message_data [MAX_THREADS]
 
char my_catalog_names [64][MAX_CATALOGS]
 
bool test_char
 
bool test_wchar
 

Macro Definition Documentation

◆ MAX_CATALOGS

#define MAX_CATALOGS   32

22.locale.messages.mt.cpp

test exercising the thread safety of the messages facet

$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.

Definition at line 42 of file 22.locale.messages.mt.cpp.

◆ MAX_LOOPS

#define MAX_LOOPS   100000

Definition at line 44 of file 22.locale.messages.mt.cpp.

◆ MAX_MESSAGES

#define MAX_MESSAGES   5

Definition at line 105 of file 22.locale.messages.mt.cpp.

◆ MAX_SETS

#define MAX_SETS   5

Definition at line 104 of file 22.locale.messages.mt.cpp.

◆ MAX_THREADS

#define MAX_THREADS   32

Definition at line 43 of file 22.locale.messages.mt.cpp.

Function Documentation

◆ main()

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

Definition at line 476 of file 22.locale.messages.mt.cpp.

◆ msg_id()

int msg_id ( int  set,
int  id 
)

Definition at line 108 of file 22.locale.messages.mt.cpp.

Variable Documentation

◆ my_catalog_names

char my_catalog_names[64][MAX_CATALOGS]

Definition at line 100 of file 22.locale.messages.mt.cpp.

◆ my_message_data

struct MyMessageData my_message_data[MAX_THREADS]

◆ opt_ncatalogs

int opt_ncatalogs = 11

Definition at line 47 of file 22.locale.messages.mt.cpp.

◆ opt_nlocales

int opt_nlocales = MAX_THREADS

Definition at line 60 of file 22.locale.messages.mt.cpp.

◆ opt_nloops

int opt_nloops = 10000

Definition at line 55 of file 22.locale.messages.mt.cpp.

◆ opt_nthreads

int opt_nthreads = 1

Definition at line 51 of file 22.locale.messages.mt.cpp.

◆ opt_shared_locale

int opt_shared_locale

Definition at line 72 of file 22.locale.messages.mt.cpp.

◆ opt_timeout

int opt_timeout = 60

Definition at line 75 of file 22.locale.messages.mt.cpp.

◆ test_char

bool test_char

Definition at line 162 of file 22.locale.messages.mt.cpp.

◆ test_wchar

bool test_wchar

Definition at line 163 of file 22.locale.messages.mt.cpp.