May 11, 2007
View ccab6f017b

- atomic_add & atomic_cmpxchg added to ppc - atomic_unkown (used when the procesor does not suport atomic ops or is not among the supported ones), tries now to use a "hash" of locks if GEN_LOCK_SET_T_UNLIMITED is defined => less contention on multi-cpus - atomic_ops.h defines *_UNLIMITED macros when the number of locks or set size are limited only by the available memory (everything exept SYSV sems) - license changes: all the atomic* stuff and the locks are now under a BSD (OpenBSD) style license

Andrei Pelinescu-Onciul authored on 11/05/2007 20:44:15
April 4, 2006
View d3da846711

- fastlock: optimizations (in general a "nicer" spin on the lock for the other cpus) and cleanups for sparc, sparc64, armv6 (nosmp for now), ppc*, mips* - fastlock: alpha: replace the cond. jump backward with a cond. jump forward and then jump backward (because a cond. jump with a negative relative offset is always predicted as taken and we want it to be predicted as not taken) - fastlock: sparc (32) smp support - lock_ops.h: introduced lock_try and lock_set_try (non-blocking lock_*_get versions, returns -1 if it failed to get the lock and 0 if it succeeds), for all the supported locking methods (fast_lock, pthread_mutex, posix_sem, sysv_sems) - updated locking doc.

Andrei Pelinescu-Onciul authored on 04/04/2006 18:04:01
September 19, 2004
View dd0e65a8bc

- SYSV lock fixes: fixed includes, added seteuid before lock init and restore it afterwards (so that SYSV sems get created with the proper uid in case -u uid is used) - moved shm_mem initialization after the config is parsed (so that ser will know if it's supposed to suid and use the seteuid hack above in the SYSV locks case) - fixed ser shutdown procedure on main_loop error (proper cleanup) - the fifo file is now deleted on exit - added version.h and changed module version control to check also the compile flags - usrloc: fixed missing lock_destroy - usrloc: fixed DB capability check even if no db mode

Andrei Pelinescu-Onciul authored on 19/09/2004 20:22:51
August 24, 2004
View 53c7e0f19a

- Spelling checked - READMEs updated

Jan Janak authored on 24/08/2004 08:45:09
July 27, 2004
View 194b6a3575

- mac os x support ported from stable - version increased to 0.8.99-dev - makefile gcc version detection update (should correctly detect the version on gentoo now) - other small 0.8.14 fixes

Andrei Pelinescu-Onciul authored on 27/07/2004 13:45:25
March 17, 2003
View 6aa0ab099e

- now GEN_LOCK_T_PREFERED is defined when is better/safe to use arrays of gen_lock_t instead of lock_set_t

Andrei Pelinescu-Onciul authored on 17/03/2003 18:43:52
View e7d698cc3c

- possible signal interruptions treated for sysv sems

Andrei Pelinescu-Onciul authored on 17/03/2003 17:04:12
March 10, 2003
View 6419a43f9f

- sun cc compile fixes (all the files not mentioned explicitly) - fixed a bug in build_res_buf_with_body_from_sip_req (bad len computations when via was not crlf terminated, e.g only lf) - Makefile.def: sun cc modules compilations options updated (it seems tm uses too many symbols for the default small memory model) - lock_ops.h: lock set support added also for PTHREAD_MUTEX & POSIX_SEM - route.c: updated to the new module exports format - sr_module.[hc]: changed module exports interface: added struct cmd_export and param_export, updated find_export, find_export_param, find_module

Andrei Pelinescu-Onciul authored on 10/03/2003 22:24:14
March 6, 2003
View ba98af468a

- added lock sets to locking.h - locking.h splitted in 2: lock_alloc & lock_ops to solve some interdependency between shm_mem.h & locking.h (WARNING: include only locking.h unless you know what you're doing).

Andrei Pelinescu-Onciul authored on 06/03/2003 16:22:10