Suggestion about an emoticon plugin implementation ...

Ethan Blanton elb at pidgin.im
Thu Jul 19 13:11:17 EDT 2007


Mauro Sérgio Ferreira Brasil spake unto us the following wisdom:
> One example was the GMutex used on "send_cb" method of 
> "flap_connection.c" file from ICQ protocol. This mutex has the simple 
> purpose to assure the ICQ primitives will have different sequence numbers.
> Without this change, ICQ protocol hangs up all time, and I took a little 
> longer to realize that some primitives were being sent with the same 
> sequence number, what leaded to protocolo hang up.

Libpurple is *explicitly* not threadsafe; you will need to make sure
that libpurple is being accessed by one thread, and one thread only.
This is not an uncommon requirement.

Ethan

-- 
The laws that forbid the carrying of arms are laws [that have no remedy
for evils].  They disarm only those who are neither inclined nor
determined to commit crimes.
		-- Cesare Beccaria, "On Crimes and Punishments", 1764
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://pidgin.im/pipermail/devel/attachments/20070719/a31cf67a/attachment.sig>


More information about the Devel mailing list