Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #39838

Re: Minor problem with bye in Gforth

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups comp.lang.forth
Subject Re: Minor problem with bye in Gforth
Date 2015-06-18 22:21 +0200
Organization A noiseless patient Spider
Message-ID <mlv96g$ghk$1@dont-email.me> (permalink)
References <6a091ef5-eb6b-4cb6-a14d-7e08911d9340@googlegroups.com>

Show all headers | View raw


josv@planet.nl wrote:

> According to the ANS standard approved: March 24, 1994
> Bye should return control to the host operating system, if any.
> When I run the following code in Gforth version 0.7.9.20150510
> I stay in Gforth on my rPi.
> 
> include unix/pthread.fs
> 
> : test-bye ( -- )  700 ms bell bye ;
> : start-bye-thread ( -- ) stacksize4 NewTask4 activate test-bye ;
> 
> start-bye-thread .s
> 
> \\
> How can it be solved?

BYE actually only returns from the Gforth engine; it's up to the starter of 
the engine, what to do.  In case of a thread, it just kills that thread.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o ID: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
http://bernd-paysan.de/

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Minor problem with bye in Gforth josv@planet.nl - 2015-06-18 07:57 -0700
  Re: Minor problem with bye in Gforth Bernd Paysan <bernd.paysan@gmx.de> - 2015-06-18 22:21 +0200
    Re: Minor problem with bye in Gforth josv@planet.nl - 2015-06-18 15:17 -0700
      Re: Minor problem with bye in Gforth Mark Wills <markwills1970@gmail.com> - 2015-06-19 00:21 -0700
        Re: Minor problem with bye in Gforth josv@planet.nl - 2015-06-19 05:23 -0700
          Re: Minor problem with bye in Gforth Bernd Paysan <bernd.paysan@gmx.de> - 2015-06-19 15:00 +0200
            Re: Minor problem with bye in Gforth josv@planet.nl - 2015-06-19 07:03 -0700

csiph-web