Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mosquitto-dev] Thread safety of e.g mosquitto_broker_publish called from plugin
  • From: "Obenhuber, Felix" <felix.obenhuber@xxxxxxxxxxx>
  • Date: Tue, 11 Oct 2022 13:57:07 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=esrlabs.com; dmarc=pass action=none header.from=esrlabs.com; dkim=pass header.d=esrlabs.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Zt6LHANoB/S+0ENPfOelEQ69ivksK9Fr6H8FIhPDVn0=; b=YEABdXGkOTI3YvJ70mm6pjYYBlIHFuPA9WsHDSaqOq4CHKplyXsSAr9cHn6xJV9Uu8rj+u/6d+JDN6y/q8gpurF50FopreKppEIVXy83FjBED4sA+soacBbOnVf69o7K7SxhEHYpBouJPMIulhj1DRgH8MLZyS3rDouIZBX0TZkrEEJ+1zf9hj81WtLjZP1GDJGp1FFheHcexVdQ//XSu9Zjfu/fpjfR3su8MwU+30zgH+GeTl0p2MWJFh6OnOJ8xH/e65chAAru3j+Z0c26vs6C+gW0zoMsEI0N8E/RFR8bMvqxRA7ffZGGHlbgU0tpTA+ol2tryMtmgkrn98/dpg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N44TIfZW9J+9E766LdVobepr5h3phs/mChvonZ0CpjDDW8RtCWpWr8L//G84NDQpLVkGTu4LQgbHr6/zudc7Lq9gIm0/GUCmeNurtMmzaC+Qeqr3W6DgbO46MvIHDHT2+ck6q8zuediPHixm5/lNUPg3e8WEnaIu1j0e10e2TkvNwXw2R11CgR5fzpHUcR+e+/2TcM9cY1+yi/M6m5dqN2zcwKznUoaNMqn1NLwcBTf8LvaqeR13HGbEctgnbfo8uzqkm4f0E3Bc9vKcIhX2StZ7+vu3vo7jwPPP0d2E3FwmzLGGPhQvRypEvDmrkQcm8vdI34jorYaFWeCeKFK/9A==
  • Delivered-to: mosquitto-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/mosquitto-dev/>
  • List-help: <mailto:mosquitto-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHY3XlZIkLac+gxHkemj4vHDUhsnw==
  • Thread-topic: Thread safety of e.g mosquitto_broker_publish called from plugin

Hello,

I’m implementing a plugin for a mosquitto v2.0.14. In the docs I couldn’t find any information about the thread safety of the functions provided for plugins to e.g  mosquitto_broker_publish.
My questions is: Is it safe to spawn threads in a plugin and call e.g mosquitto_broker_publish? Is there any synchronisation inside the broker that ensures that a call to e.g mosquitto_broker_publish is safe from *non* mosquitto threads?

I know that it’s a different story for clients - there’s also some documentation - but this is undocumented for plugins.

Thanks in advance

Felix

________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.

Back to the top