Sponsored Content
Full Discussion: C++ application development
Top Forums Programming C++ application development Post 302701347 by amisubha on Saturday 15th of September 2012 04:14:08 PM
Old 09-15-2012
What about eclipse CDT?
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

Difference between development and Production unix servers for a application??

Hi all I am running a major script of my application in development for implementing code changes for process improvement in time. The script runs in production once in a month . It takes 8 hours 30 mins in Production server . what surprice me is , when I run the same script in development server... (9 Replies)
Discussion started by: sakthifire
9 Replies
DLLOCKINIT(3)						   BSD Library Functions Manual 					     DLLOCKINIT(3)

NAME
dllockinit -- register thread locking methods with the dynamic linker LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <dlfcn.h> void dllockinit(void *context, void *(*lock_create)(void *context), void (*rlock_acquire)(void *lock), void (*wlock_acquire)(void *lock), void (*lock_release)(void *lock), void (*lock_destroy)(void *lock), void (*context_destroy)(void *context)); DESCRIPTION
Due to enhancements in the dynamic linker, this interface is no longer needed. It is deprecated and will be removed from future releases. In current releases it still exists, but only as a stub which does nothing. Threads packages can call dllockinit() at initialization time to register locking functions for the dynamic linker to use. This enables the dynamic linker to prevent multiple threads from entering its critical sections simultaneously. The context argument specifies an opaque context for creating locks. The dynamic linker will pass it to the lock_create function when creat- ing the locks it needs. When the dynamic linker is permanently finished using the locking functions (e.g., if the program makes a subsequent call to dllockinit() to register new locking functions) it will call context_destroy to destroy the context. The lock_create argument specifies a function for creating a read/write lock. It must return a pointer to the new lock. The rlock_acquire and wlock_acquire arguments specify functions which lock a lock for reading or writing, respectively. The lock_release argument specifies a function which unlocks a lock. Each of these functions is passed a pointer to the lock. The lock_destroy argument specifies a function to destroy a lock. It may be NULL if locks do not need to be destroyed. The context_destroy argument specifies a function to destroy the context. It may be NULL if the context does not need to be destroyed. Until dllockinit() is called, the dynamic linker protects its critical sections using a default locking mechanism which works by blocking the SIGVTALRM, SIGPROF, and SIGALRM signals. This is sufficient for many application level threads packages, which typically use one of these signals to implement preemption. An application which has registered its own locking methods with dllockinit() can restore the default lock- ing by calling dllockinit() with all arguments NULL. SEE ALSO
rtld(1), signal(3) HISTORY
The dllockinit() function first appeared in FreeBSD 4.0. BSD
July 5, 2000 BSD
All times are GMT -4. The time now is 05:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy