From: Michael B. <mic...@cm...> - 2008-10-29 17:49:31
|
Hi, I send the answer to a user question on IRC after the user disconnected and I killed the direct chat room. So atom_, here is your answer and sorry for the abort. BTW direct question means you should prefix your question/message with bellmich: on IRC so that it is highlighted for me. (06:21:16 PM) atom_: is smlDataSyncRun() synchronous? (06:21:26 PM) azeem: there's absolutely no problem with asking questions (06:21:50 PM) azeem: better address bellmich directly, I doubt anybody else knows off-hand (06:22:00 PM) atom_: ok (06:32:10 PM) atom_ left the room (quit: "http://www.mibbit.com ajax IRC Client"). (06:33:11 PM) bellmich: atom_: No. (06:38:39 PM) azeem: that was only 4 minutes! (06:38:46 PM) bellmich: The syncml-ds-tool main function is a bit tricky here. (06:39:10 PM) bellmich: The first mutex lock really locks the mutex after smlDataSyncRun. (06:39:24 PM) bellmich: The second call blocks until the mutex is unlocked. (06:39:32 PM) bellmich: Where is the mutex lock unlocked? (06:40:03 PM) bellmich: It is unlocked in the event callback recvEventCallback. (06:40:36 PM) bellmich: The unlock happens if the event SML_DATA_SYNC_EVENT_FINISHED is received. (06:40:56 PM) bellmich: I use the mutex lock to block the main function. (06:41:30 PM) bellmich: The complete stuff is asynchron but main is synchron. So I must block the main function until the synchronization is over. -- _______________________________________________________________ Michael Bell Humboldt-Universitaet zu Berlin Tel.: +49 (0)30-2093 2482 ZE Computer- und Medienservice Fax: +49 (0)30-2093 2704 Unter den Linden 6 mic...@cm... D-10099 Berlin _______________________________________________________________ X.509 CA Certificates / Wurzelzertifikate https://pki.pca.dfn.de/hu-berlin-ca/cgi-bin/pub/pki?cmd=getStaticPage;name=index;id=2&RA_ID=0 |