From 8a6d48c0542876eb3acfc0970c0ab7872db08d5f Mon Sep 17 00:00:00 2001 From: Zheng Da Date: Sun, 6 Dec 2009 05:26:23 +0100 Subject: check in the original version of dde linux26. --- libdde_linux26/examples/bug_timersleep/WhatIsThis | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libdde_linux26/examples/bug_timersleep/WhatIsThis (limited to 'libdde_linux26/examples/bug_timersleep/WhatIsThis') diff --git a/libdde_linux26/examples/bug_timersleep/WhatIsThis b/libdde_linux26/examples/bug_timersleep/WhatIsThis new file mode 100644 index 00000000..3fb57408 --- /dev/null +++ b/libdde_linux26/examples/bug_timersleep/WhatIsThis @@ -0,0 +1,16 @@ +=== Bug reported by Andre Puschmann === + +main.c contains Linux kernel code that triggers 2 problems: + +1) list order violation in the list alloc lib +2) threads hang after scheduling a very short timer, because + the timer thread seems to miss some events + + +Fixes +===== +1) correct locking for ddekit's memory allocation functions + solves the problem +2) fixed DDEKit's timer implementation to not use IPC for + notifications (because some got lost for atomicity reasons) + but use a counting semaphore -- cgit v1.2.3