Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
iOS application
Commits
1cbb618e
Commit
1cbb618e
authored
4 years ago
by
Toby Brennan
Browse files
Options
Download
Email Patches
Plain Diff
Further documenting
parent
3d58df33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
memri/model/DatabaseController.swift
+1
-1
memri/model/DatabaseController.swift
with
1 addition
and
1 deletion
+1
-1
memri/model/DatabaseController.swift
+
1
-
1
View file @
1cbb618e
...
...
@@ -16,7 +16,7 @@ class DatabaseController {
/// This function returns a Realm for the current thread
static
func
getRealm
()
->
Realm
{
guard
!
isOnRealmQueue
else
{
return
queueConfinedRealm
}
guard
!
isOnRealmQueue
else
{
return
queueConfinedRealm
}
// If someone trys to write to realm while we're already in the realm queue this would lock the thread. Hence this check
return
try!
Realm
(
configuration
:
realmConfig
,
queue
:
nil
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets