Click here to Skip to main content
12,622,291 members (36,832 online)
Click here to Skip to main content

Tagged as

Stats

27.7K views
345 downloads
39 bookmarked
Posted

Testing simple concurrent containers

, 25 Oct 2009 CPOL
This article illustrates simple approaches and test results when creating containers with concurrent flavor and running on a multi-core PC.
��<html>

<head>

<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-16">

</head>

<body>

<pre>

<table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3>

Build Log

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>

<h3>Build started: Project: container_locks, Configuration: Release64|Win32</h3>

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Command Lines

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Creating temporary file "c:\Container_locks\VC9\Release64\RSP00001256445504.rsp" with contents

[

/O2 /Oi /GL /I &quot;C:\TBB22\include&quot; /D &quot;WIN64&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_UNICODE&quot; /D &quot;UNICODE&quot; /FD /EHsc /MD /Gy /Fo&quot;Release64\\&quot; /Fd&quot;Release64\vc90.pdb&quot; /W4 /c /Zi /TP ..\src\stdafx.cpp


..\src\main.cpp

]

Creating command line "cl.exe @c:\Container_locks\VC9\Release64\RSP00001256445504.rsp /nologo /errorReport:prompt"

Creating temporary file "c:\Container_locks\VC9\Release64\RSP00001356445504.rsp" with contents

[

/OUT:&quot;C:\Container_locks\VC9\Release64\container_locks.exe&quot; /INCREMENTAL:NO /LIBPATH:&quot;C:\TBB22\intel64\vc9\lib&quot; /MANIFEST /MANIFESTFILE:&quot;Release64\container_locks.exe.intermediate.manifest&quot; /MANIFESTUAC:&quot;level='asInvoker' uiAccess='false'&quot; /DEBUG /PDB:&quot;c:\Container_locks\VC9\Release64\container_locks.pdb&quot; /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X64 tbb.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib


&quot;.\Release64\main.obj&quot;


&quot;.\Release64\stdafx.obj&quot;

]

Creating command line "link.exe @c:\Container_locks\VC9\Release64\RSP00001356445504.rsp /NOLOGO /ERRORREPORT:PROMPT"

Creating temporary file "c:\Container_locks\VC9\Release64\RSP00001456445504.rsp" with contents

[

/outputresource:&quot;.\Release64\container_locks.exe;#1&quot; /manifest


.\Release64\container_locks.exe.intermediate.manifest

]

Creating command line "mt.exe @c:\Container_locks\VC9\Release64\RSP00001456445504.rsp /nologo"

Creating temporary file "c:\Container_locks\VC9\Release64\BAT00001556445504.bat" with contents

[

@echo Manifest resource last updated at %TIME% on %DATE% &gt; .\Release64\mt.dep

]

Creating command line "c:\Container_locks\VC9\Release64\BAT00001556445504.bat"

Creating temporary file "c:\Container_locks\VC9\Release64\BAT00001656445504.bat" with contents

[

@echo off


copy &quot;C:\TBB22\intel64\vc9\bin\tbb.dll&quot; &quot;C:\Container_locks\VC9\Release64&quot;


if errorlevel 1 goto VCReportError


goto VCEnd


:VCReportError


echo Project : error PRJ0019: A tool returned an error code from &quot;Copying DLLs and PDBs&quot;


exit 1


:VCEnd

]

Creating command line "c:\Container_locks\VC9\Release64\BAT00001656445504.bat"

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Output Window

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Compiling...

stdafx.cpp

main.cpp

c:\container_locks\src\pool_t.h(45) : warning C4324: 'Pool_t<Entry_t,pool_size>::List_entry' : structure was padded due to __declspec(align())

        with

        [

            Entry_t=SlimRWLock,

            pool_size=0x031

        ]

        c:\container_locks\src\pool_t.h(51) : see reference to class template instantiation 'Pool_t<Entry_t,pool_size>::List_entry' being compiled

        with

        [

            Entry_t=SlimRWLock,

            pool_size=0x031

        ]

        c:\container_locks\src\pool_t.h(57) : see reference to class template instantiation 'Pool_t<Entry_t,pool_size>::_Internal_entry_t' being compiled

        with

        [

            Entry_t=SlimRWLock,

            pool_size=0x031

        ]

        c:\container_locks\src\pool_t.h(89) : see reference to class template instantiation 'Pool_t<Entry_t,pool_size>' being compiled

        with

        [

            Entry_t=SlimRWLock,

            pool_size=0x031

        ]

        c:\container_locks\src\pool_t.h(95) : see reference to class template instantiation 'Array_of_pools_t<Entry_t,pool_size>' being compiled

        with

        [

            Entry_t=SlimRWLock,

            pool_size=0x031

        ]

        c:\container_locks\src\rwlocks_helpers.h(185) : see reference to class template instantiation 'Pool_of_shared_elements<Entry_t,number_of_threads>' being compiled

        with

        [

            Entry_t=SlimRWLock,

            number_of_threads=32

        ]

        c:\container_locks\src\map_container_locker_t.h(65) : see reference to class template instantiation 'Container_locker_t<Lock_type,number_of_threads>' being compiled

        with

        [

            Lock_type=SlimRWLock,

            number_of_threads=32

        ]

        ..\src\main.cpp(81) : see reference to class template instantiation 'Map_t<key_type,value_type,lock_type,number_of_threads>' being compiled

        with

        [

            key_type=long,

            value_type=test_container_element,

            lock_type=SlimRWLock,

            number_of_threads=32

        ]

Linking...

Generating code

Finished generating code

Embedding manifest...

Copying DLLs and PDBs

        1 file(s) copied.

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Results

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Build log was saved at "file://c:\Container_locks\VC9\Release64\BuildLog.htm"

container_locks - 0 error(s), 1 warning(s)

</pre></table><table   width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2>

</font></table></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Valery Grebnev
Software Developer
Canada Canada
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 25 Oct 2009
Article Copyright 2009 by Valery Grebnev
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid