Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.155.226 Times

libhcritsec 0.20

  Date Added: November 05, 2010  |  Visits: 538

libhcritsec

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)

hcritsec is a C++ class for Critical Sections in programs. hcritsec can be used to define a critical section in a program. It can be used in a recursive way. So functions that are nested can call the enter and leave functions recursively (see section Synopsys). A critical section class is typically shared between threads, or is part of an object or variable that is shared between threads. It can be used to gain exclusive access to shared resources or variables. Synopsys (...) void thread_class::calc(int *t) { S->enter(); *t+=1; S->leave(); } void thread_class::run(void) { for(i=0;i<100000;i++) { S->enter(); calc(t); S->leave(); } } (...) int main() { hcrisec S; int t=0; thread_class t1(&S,&t),t2(&s,&t) t1.start(); t2.start(); thread_class::join(t1,t2); return 0; } Restrictions - You may not copy an object of class critsec. Allways use a pointer to share the object between threads. - If hcritsec throws a fatal error, this will allways be of type std::string..

Requirements: No special requirements
Platforms: Linux
Keyword: C Class C++ Class Critical Critical Sections Libhcritsec Libraries Programming Sections Thread
Users rating: 0/10

License: Freeware Size: 9.22 KB
LIBHCRITSEC RELATED
Code Management Tools  -  C to C++ 1.4.0
C to C++ is a Python script that converts C code to C++ code. The main program is ctocpp.py that performs successive stages for converting C to C++. A script, ctocpp gives it as parameter to the python interpreter with options you add. The...
102.4 KB  
Libraries  -  More for C++ 1.0
More for C++ is a class library that provides some features usually not common for C++ More for C++ includes a mark-sweep garbage collector, platform-independent classes for threading, sockets, and I/O, unit tests, and a few other utility...
163.84 KB  
Libraries  -  GEO 0.1.7
GEO project is a C++ geometric template class library. Use this library for your graphical, image processing, or scientific applications. GEO has rich set of operations with vectors and matrices, 2D and 3D objects (such as finding convex hull,...
29.7 KB  
Libraries  -  libbsl 0.9.1
libbsl (Basic System Library) is a powerful, easy to use and fully thread safe C++ template class library for frequently recurring (machine/OS oriented) programming problems. All fundamental objects in libbsl are freely copyable and shareable...
1.04 MB  
Libraries  -  Libsocketcpp 1.0.7
Libsocketcpp provides a easy-to-use C++ socket library class. Dispite the name, the TCPSocket class can handle both UDP and TCP connections. Unfortunatly right now, the class is simple. It does not do anything really fancy like non-blocking...
143.36 KB  
Libraries  -  Digital Mars C and C++ Compiler 8.5+
Digital Mars C/C++ Compiler contains - Win32 console versions of the tools; C and C++ compilers; Optlink Linker; Librarian. Standard and Win32 header files; Runtime linkable libraries; Does not come with a debugger, but works with the Symantec or...
2.87 MB  
Libraries  -  C to C++ Converter 1.4
C to C++ Converter is a script that translates C to C++ in several steps. 1) generating classes, 2) converting functions to methods, 3) replacing calls to functions by references to methods. The main script calls other specialized ones but you can...
150 KB  
Libraries  -  Jabber::Connection 0.03
SYNOPSIS # client connection: my $c = new Jabber::Connection( server => jabber.org, log => 1, ); # component connection: # my $c = new Jabber::Connection( # server => localhost:5700, # localname => comp.localhost, # ns =>...
12.29 KB  
Libraries  -  Boehm-Demers-Weiser Conservative Garbage Collector 7.0
The Boehm-Demers-Weiser conservative garbage collector can be used as a garbage collecting replacement for C malloc or C++ new. Boehm-Demers-Weiser Conservative Garbage Collector allows you to allocate memory basically as you normally would,...
1024 KB  
Libraries  -  Erwin Data Structures 2.1.58633
Erwin Data Structures is a library that is meant to be the ultimate data structure library for mixed usage of C and C++. Arbitrary key and value types are implemented by template files that dont use C++ templates, but are instantiated by a Perl...
686.08 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB