on master help sign in
update threads/gall/start-thread wrt dist
5235cd4tinnus-napbus
content/docs/userspace/threads/gall/start-thread.md+3−3
@@ -29,7 +29,7 @@ Here's an example of a barebones gall agent that just starts a thread:
29 (pair term term)
29 (pair term term)
30 =/ tid `@ta`(cat 3 'thread_' (scot %uv (sham eny.bowl)))
30 =/ tid `@ta`(cat 3 'thread_' (scot %uv (sham eny.bowl)))
31 =/ ta-now `@ta`(scot %da now.bowl)
31 =/ ta-now `@ta`(scot %da now.bowl)
32− =/ start-args [~ `tid p.q.vase !>(q.q.vase)]
32+ =/ start-args [~ `tid byk.bowl p.q.vase !>(q.q.vase)]
33 :_ this
33 :_ this
34 :~
34 :~
35 [%pass /thread/[ta-now] %agent [our.bowl %spider] %poke %spider-start !>(start-args)]
35 [%pass /thread/[ta-now] %agent [our.bowl %spider] %poke %spider-start !>(start-args)]
@@ -76,7 +76,7 @@ And here's a minimal thread to test it with:
76==
76==
77```
77```
78
78
79−Save them as `/app/thread-starter.hoon` and `/ted/test-thread.hoon` respectively, `|commit %home`, and start the app with `|start %thread-starter`.
79+Save them as `/app/thread-starter.hoon` and `/ted/test-thread.hoon` respectively in the `%base` desk, `|commit %base`, and start the app with `|rein %base [& %thread-starter]`.
80
80
81Now you can poke it with a pair of thread name and argument like:
81Now you can poke it with a pair of thread name and argument like:
82
82
@@ -116,7 +116,7 @@ We can ignore the input logic, here's the important part:
116```hoon
116```hoon
117=/ tid `@ta`(cat 3 'thread_' (scot %uv (sham eny.bowl)))
117=/ tid `@ta`(cat 3 'thread_' (scot %uv (sham eny.bowl)))
118=/ ta-now `@ta`(scot %da now.bowl)
118=/ ta-now `@ta`(scot %da now.bowl)
119−=/ start-args [~ `tid p.q.vase !>(q.q.vase)]
119+=/ start-args [~ `tid byk.bowl p.q.vase !>(q.q.vase)]
120:_ this
120:_ this
121:~
121:~
122 [%pass /thread/[ta-now] %agent [our.bowl %spider] %poke %spider-start !>(start-args)]
122 [%pass /thread/[ta-now] %agent [our.bowl %spider] %poke %spider-start !>(start-args)]