You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ljluestc (via GitHub)" <gi...@apache.org> on 2023/06/27 07:19:51 UTC

[GitHub] [dubbo] ljluestc commented on issue #6572: AsyncContextImpl$future字段没有并发控制

ljluestc commented on issue #6572:
URL: https://github.com/apache/dubbo/issues/6572#issuecomment-1608935712

   为了确保 future 字段在被多个线程访问时的可见性和一致性,您可以将其声明为 volatile,或者使用适当的同步机制(如同步块或 Lock 对象)在 future 字段的写入和读取操作之间建立发生之前关系 。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org