Skip to content

Commit

Permalink
✨ 싱글톤 객체 반환 함수 동일성 보장
Browse files Browse the repository at this point in the history
Co-authored-by: bngsh <[email protected]>
  • Loading branch information
yonghanJu and bngsh committed Dec 7, 2022
1 parent baa8f72 commit 8b9c7df
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class RunningDataManager {
companion object {
private var INSTANCE: RunningDataManager? = null

@Synchronized
fun getInstance(): RunningDataManager {
return INSTANCE ?: RunningDataManager().also {
INSTANCE = it
Expand Down

0 comments on commit 8b9c7df

Please sign in to comment.