Commit Graph

34 Commits

Author SHA1 Message Date
Steven Dake
1bf4e3bb25 defect 734
cleanup include files and exports from libraries



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@731 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-13 19:57:48 +00:00
Mark Haverkamp
dc23389a9a Check for reserved event ID and return SA_AIS_ERR_INVALID_PARAM.
Bug 694


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@728 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-07-07 20:26:01 +00:00
Mark Haverkamp
d192e91974 Error comparing unsigned to less than zero.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@723 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-29 22:14:51 +00:00
Mark Haverkamp
2b3bcfb6e0 saEvtEventAttributesSet needs to check that the priority value passed in
is valid.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@712 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-27 21:33:30 +00:00
Mark Haverkamp
603e49e662 The channel open functions need to check for bad flags.
I set the newly created event elements to the default 
values in the B spec.



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@710 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-24 21:20:17 +00:00
Mark Haverkamp
d330f32d78 The A spec required patterns to be set but the B
spec doesn't.  Fix lib/evt.c and test/testevt.c



git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@708 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-23 14:44:29 +00:00
Mark Haverkamp
19801c20ce This fixes some B spec related parameter checks
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@707 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-21 22:22:02 +00:00
Mark Haverkamp
217207babb Some fixes to the event service based on the saftest event
tests results.  

The changes may affect applications currently using the event service. 

1. Timeout value to the saEvtChannelOpen call was updated to use
SA_TIME_MAX instead of 0 for infinite timeout.

2. added cleanup in the library to remove associated events when a
channel is closed, and remove associated channels when finalize is
called.

3. Added some new checking args for NULL and returning the correct error
code.

4. fixed dispatch to return correct status with SA_DISPATCH_ONE and no
available poll data.

5. Makefile had bad dependency for evt library build.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@706 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-21 22:19:03 +00:00
Mark Haverkamp
221aa61328 Auto merged
2005/06/15 14:09:08-07:00 osdl.net!markh
Fix version handling code to be B spec compliant.
BUG 623.

(Logical change 1.206)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@664 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-15 21:09:42 +00:00
Mark Haverkamp
bf199836cf Move the closing of file descriptors from the destructor to
the finalize function.  This allows threads waiting on poll to
wake up and release handle references.

(Logical change 1.205)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@662 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-15 21:04:28 +00:00
Mark Haverkamp
b3767775c4 Fixes to patterns and filters for B API spec support.
(Logical change 1.204)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@661 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-06-13 20:07:55 +00:00
Mark Haverkamp
2b18ac9b77 More updates to make event conform to B spec.
(Logical change 1.193)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@633 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-05-25 20:46:41 +00:00
Steven Dake
b99706a7e3 defect 512 - some ais header file defines are wrong.
(Logical change 1.189)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@624 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-22 18:46:23 +00:00
Mark Haverkamp
7e70b8dfe3 Defect 501.
Fix some mutex and error return problems.

(Logical change 1.185)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@617 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-20 22:13:34 +00:00
Steven Dake
37fb3fca52 defect 188 missed initial checkin
(Logical change 1.177)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@597 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-04-15 20:48:57 +00:00
Mark Haverkamp
9da13b631e Async open and subscribe needed to check for registered call back
functions and retrun an error if there were no assocated callbacks.

(Logical change 1.159)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@551 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-28 17:26:27 +00:00
Mark Haverkamp
6b9a85376c Only dispatch a callback if it is non-null.
(Logical change 1.158)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@550 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-23 20:12:44 +00:00
Mark Haverkamp
622b861710 Update the publish API to return SA_AIS_ERR_TRY_AGAIN to the application
instead of handling it in the library.

(Logical change 1.145)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@516 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-03-11 19:03:05 +00:00
Mark Haverkamp
2f5f075bfa Set lost event ID on dropped events.
(Logical change 1.138)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@495 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-15 23:10:40 +00:00
Mark Haverkamp
191871bb73 Add unlink function.
(Logical change 1.137)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@493 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-15 16:54:46 +00:00
Mark Haverkamp
cd76f75d0a Add handler for channel open async
(Logical change 1.133)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@478 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-08 17:16:52 +00:00
Mark Haverkamp
03492e8793 Conver to B spec API.
(Logical change 1.130)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@470 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-02-04 21:19:20 +00:00
Steven Dake
a4bf2f872d update to new totem code.
(Logical change 1.117)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@410 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-22 20:55:47 +00:00
Mark Haverkamp
37c27a4f35 add in missing mutex unlock
(Logical change 1.116)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@406 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-11 16:59:10 +00:00
Kristen Smith
fa9850561e I was running into a problem where the evt api appeared to be getting into a
deadlock situtation. The problem would occur when I would kill aisexec
while my program was running (using EVT and CLM apis). My program is
multi-threaded where 1 thread is calling evtDispatch and other threads
can be calling evtPublish at various times. The problem I ran into is when I
killed aisexec, the evtDispatch would take a lock, but never give it back.
At the same time, my sending thread would call evtPublish which would take
the lock and hang since evtDispatch never gave up the lock it took.

The fix was to add a few unlocks in evt.c where they appeared to be missing.
Here is the info:

1) line 504 in evt.c (lib dir) calls

pthread_mutex_unlock(&evti->ei_mutex);
goto error_unlock;

2) There are subsequent calls to goto error_unlock in later error statements
that do not unlock the mutex before the goto call - the lines are 534 and 541

Adding the unlock right before the goto @ 534 and @ 541 fixes the deadlock
for my scenario.

Kristen Smith
Nortel Networks

(Logical change 1.110)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@394 fd59a12c-fef9-0310-b244-a6a79926bd2f
2005-01-07 17:28:29 +00:00
Steven Dake
7e14a7632e fix double ;; which causes gcc 2.95 to fail to compile
(Logical change 1.108)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@390 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-11-24 23:48:25 +00:00
Mark Haverkamp
f370d6961e Fix some compiler warnings with gcc 3.4
(Logical change 1.93)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@335 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-10-12 21:59:46 +00:00
Mark Haverkamp
f2671ba36b Remove some old TODO comments.
(Logical change 1.84)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@303 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-28 18:29:14 +00:00
Mark Haverkamp
7f324361a7 Development, updates, and bug fixes to event service lib.
(Logical change 1.63)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@231 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-09-02 17:16:25 +00:00
Steven Dake
b1e08f10a5 Add flow control to eventing.
(Logical change 1.55)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@182 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-08-20 22:18:34 +00:00
Mark Haverkamp
21f537641e Fix compiler warning
(Logical change 1.50)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@155 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-30 17:51:32 +00:00
Mark Haverkamp
aa5a8389ef Fix queue items memory leak.
(Logical change 1.49)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@153 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-30 17:49:14 +00:00
Mark Haverkamp
cba04f10c5 (Logical change 1.46)
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@135 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:43 +00:00
Mark Haverkamp
9dc4b066ad Initial revision
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@134 fd59a12c-fef9-0310-b244-a6a79926bd2f
2004-07-29 18:41:42 +00:00