Code

amqp plugin: Document the lock required to hold when calling "camqp_write_locked".
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 6 Nov 2010 08:00:00 +0000 (09:00 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 6 Nov 2010 08:00:00 +0000 (09:00 +0100)
src/amqp.c

index c301dca89706e3d6337e54ed0bf5313faccfd3a8..f0abd44b461a38c5c7fade0b1e96b92f11897ec7 100644 (file)
@@ -625,6 +625,7 @@ static int camqp_subscribe_init (camqp_config_t *conf) /* {{{ */
 /*
  * Publishing code
  */
+/* XXX: You must hold "conf->lock" when calling this function! */
 static int camqp_write_locked (camqp_config_t *conf, /* {{{ */
         const char *buffer, const char *routing_key)
 {