Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
ed800460
Commit
ed800460
authored
12 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
Made the cache sync actually run in a secondary thread.
SVN: 27450
parent
e49acba0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openbis-ipad/BisKit/Classes/CISDOBIpadServiceManager.h
+1
-0
1 addition, 0 deletions
openbis-ipad/BisKit/Classes/CISDOBIpadServiceManager.h
openbis-ipad/BisKit/Classes/CISDOBIpadServiceManager.m
+3
-2
3 additions, 2 deletions
openbis-ipad/BisKit/Classes/CISDOBIpadServiceManager.m
with
4 additions
and
2 deletions
openbis-ipad/BisKit/Classes/CISDOBIpadServiceManager.h
+
1
−
0
View file @
ed800460
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
@property
(
readonly
,
strong
)
NSManagedObjectModel
*
managedObjectModel
;
@property
(
readonly
,
strong
)
NSManagedObjectModel
*
managedObjectModel
;
@property
(
readonly
,
strong
)
NSPersistentStoreCoordinator
*
persistentStoreCoordinator
;
@property
(
readonly
,
strong
)
NSPersistentStoreCoordinator
*
persistentStoreCoordinator
;
@property
(
readonly
,
strong
)
NSEntityDescription
*
ipadEntityDescription
;
@property
(
readonly
,
strong
)
NSEntityDescription
*
ipadEntityDescription
;
@property
(
readonly
,
strong
)
NSOperationQueue
*
queue
;
// Initialization
// Initialization
...
...
This diff is collapsed.
Click to expand it.
openbis-ipad/BisKit/Classes/CISDOBIpadServiceManager.m
+
3
−
2
View file @
ed800460
...
@@ -99,6 +99,8 @@ static NSManagedObjectContext* GetMainThreadManagedObjectContext(NSURL* storeUrl
...
@@ -99,6 +99,8 @@ static NSManagedObjectContext* GetMainThreadManagedObjectContext(NSURL* storeUrl
_
ipadEntityDescription
=
[
NSEntityDescription
entityForName
:
@
"CISDOBIpadEntity"
inManagedObjectContext
:
_
managedObjectContext
];
_
ipadEntityDescription
=
[
NSEntityDescription
entityForName
:
@
"CISDOBIpadEntity"
inManagedObjectContext
:
_
managedObjectContext
];
_
managedObjectModel
=
[
_
ipadEntityDescription
managedObjectModel
];
_
managedObjectModel
=
[
_
ipadEntityDescription
managedObjectModel
];
_
queue
=
[[
NSOperationQueue
alloc
]
init
];
return
self
;
return
self
;
}
}
...
@@ -110,8 +112,7 @@ static NSManagedObjectContext* GetMainThreadManagedObjectContext(NSURL* storeUrl
...
@@ -110,8 +112,7 @@ static NSManagedObjectContext* GetMainThreadManagedObjectContext(NSURL* storeUrl
[
synchronizer
run
];
[
synchronizer
run
];
[
synchronizer
performSelectorOnMainThread
:
@
selector
(
notifyCallOfResult
:)
withObject
:
nil
waitUntilDone
:
NO
];
[
synchronizer
performSelectorOnMainThread
:
@
selector
(
notifyCallOfResult
:)
withObject
:
nil
waitUntilDone
:
NO
];
};
};
NSBlockOperation
*
blockOp
=
[
NSBlockOperation
blockOperationWithBlock
:
syncBlock
];
[
_
queue
addOperationWithBlock
:
syncBlock
];
[
blockOp
start
];
}
}
-
(
CISDOBIpadServiceManagerCall
*
)
managerCallWrappingServiceCall
:(
CISDOBAsyncCall
*
)
serviceCall
pruning
:(
BOOL
)
prune
-
(
CISDOBIpadServiceManagerCall
*
)
managerCallWrappingServiceCall
:(
CISDOBAsyncCall
*
)
serviceCall
pruning
:(
BOOL
)
prune
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment