Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

优化OpenAIClient类代码,双检锁单例加volatile修饰 - #85

Open
IDJack wants to merge 1 commit into
alibaba:mainfrom
IDJack:patch1
Open

优化OpenAIClient类代码,双检锁单例加volatile修饰#85
IDJack wants to merge 1 commit into
alibaba:mainfrom
IDJack:patch1

Conversation

@IDJack

@IDJack IDJack commented May 6, 2023

Copy link
Copy Markdown
Contributor

OpenAiStreamClient OPEN_AI_STREAM_CLIENT的创建用了传统的双检锁单例模式,但存在线程安全问题,需要加volatile修饰

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant