Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the current mult-threading #199

Merged
merged 1 commit into from
Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion annotation/main.scm
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
(biogrid-pairs (make-atom-set))
(biogrid-reported-pathways (make-atom-set)))
(let* ([fns (parse-request genes-list file-name request)]
[result (par-map (lambda (x) (x)) fns)]
[result (map (lambda (x) (x)) fns)]
[graphs (map (lambda (res) (atomese-parser res)) result)]
[super-graph (make-graph (append-map (lambda (graph) (graph-nodes graph)) graphs)
(append-map (lambda (graph) (graph-edges graph)) graphs)
Expand Down
5 changes: 1 addition & 4 deletions annotation/util.scm
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@
#:use-module (opencog bioscience)
#:use-module (annotation graph)
#:use-module (ice-9 optargs)
; #:use-module (rnrs base)
#:use-module (rnrs exceptions)
#:use-module (ice-9 textual-ports)
#:use-module (ice-9 regex)
#:use-module (srfi srfi-1)
#:use-module (ice-9 match)
#:use-module (ice-9 threads)
#:export (create-node
create-edge
write-to-file
Expand All @@ -54,9 +52,8 @@
This differs from ordinary caching/memoizing utilities as it provides
special handling for Atom arguments.
"
(define mtx (make-mutex))
(define cache (make-afunc-cache FUNC))
(lambda (ATOM) (with-mutex mtx (cache ATOM)))
(lambda (ATOM) (cache ATOM))
)

; ----------------------------------------------------
Expand Down