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

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

Serving Software Downloads in 956 Categories, Downloaded 50.334.604 Times

libhcritsec 0.20

  Date Added: November 05, 2010  |  Visits: 696

libhcritsec

Report Broken Link
Printer Friendly Version


Product Homepage
Download (90 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
USER REVIEWS
More Reviews or Write Review


LIBHCRITSEC RELATED
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  -  Class::MethodMaker::V1Compat 2.08
Class::MethodMaker::V1Compat is a V1 compatibility code for C::MM. SYNOPSIS This class is for internal implementation only. It is not a public API. Class::MethodMaker version 2 strives for backward-compatiblity with version 1 as far as...
88.06 KB  
Libraries  -  Class::Struct::FIELDS 1.1
Class::Struct::FIELDS module combine Class::Struct, base and fields. SYNOPSIS (This page documents Class::Struct::FIELDS v.1.1.) use Class::Struct::FIELDS; # declare struct, based on fields, explicit class name: struct (CLASS_NAME => {...
18.43 KB  
Libraries  -  COID 0.8.5
COID is a C++ object-serving networking library, with tool that automatically generates a lightweight communication layer directly from the C++ class declarations. Instantly functioning remote callability for virtually any C++ class can be...
450.56 KB  
Libraries  -  mGSTEP 0.558
mGSTEP project is an core elements in NeXTs (now Apple) OPENSTEP/Cocoa Objective-C class libraries implementation. The principal design goal is the development of a modular application development framework suitable for use in embedded devices...
655.36 KB  
Libraries  -  Class::Declare::Attributes 0.04
Class::Declare::Attributes is a Perl module with Class::Declare method types using Perl attributes. SYNOPSIS package My::Class; use 5.006; use strict; use warnings; use base qw( Class::Declare::Attributes ); # declare the...
21.5 KB  
Libraries  -  Class::Multimethods::Pure 0.13
Class::Multimethods::Pure is a Perl module that contains a method-ordered multimethod dispatch. SYNOPSIS use Class::Multimethods::Pure; package A; sub magic { rand() > 0.5 } package B; use base A; package C; use base A; BEGIN { multi...
15.36 KB  
Libraries  -  Class::Method::hash 2.08
Class::Method::hash is a Perl module that helps you create methods for handling a hash value. SYNOPSIS use Class::MethodMaker [ hash => [qw/ x /] ]; $instance->x; # empty $instance->x(a => 1, b => 2, c => 3); $instance->x_count == 3; #...
89.09 KB  
Libraries  -  cgicc 3.2.3
GNU Cgicc is an ANSI C++ compliant class library. cgicc greatly simplifies the creation of CGI applications for the World Wide Web by doing the following: - Parses GET and POST form data transparently. - Provides string, integer, floating-point...
716.8 KB  
Libraries  -  libtcp++ 0.1.2
libtcp++ is a C++ class library to facilitate the creation of TCP/IP clients and servers. libtcp++ has three classes, TcpClient, TcpServer and TcpIpRuleSet. TcpServer has build it logging capability peer detection method, and IP-based access...
69.63 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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