Re: [fpc-pascal] My Linux service application consumes 10% CPU when idling - why?

2021-10-04 Thread Bo Berglund via fpc-pascal
On Mon, 04 Oct 2021 12:46:32 -0400, Dennis Lee Bieber via fpc-pascal
 wrote:

>
>   COMMENT: here you ask about a non-GU /service/ application, but in your
>prior post you gave a code snippet. It may just be a documentation flaw,
>but...
>
>-=-=-
>{ function to be called when gui thread is ready to execute method
>  result is true if a method has been executed
>}
>function CheckSynchronize(timeout : longint=0) : boolean;
>var
>  { method proc that is called to trigger gui thread to execute a
>method }
>  WakeMainThread : TNotifyEvent = nil;

My program in Lazarus *is* a "simple program" and it has no GUI components.

I never even looked at the implementation of CheckSynchronize()...
It was just given in another thread when I was working on the port from Delphi
to Linux and thus from the Windows GUI environment to the non-GUI command line
program environment.

It was needed in the main loop in order for threads down inside the program to
be able to transfer their data into an event handler which is processing
incoming data.

Originally I had a sleep(5) inside the loop too, but I took that out when it was
clear that CheckSynchronize had a timeout argument (optional).

It is now close to midnight so I have to postpone any testing until tomorrow.


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-04 Thread Bo Berglund via fpc-pascal
On Mon, 04 Oct 2021 06:45:23 -0400, DougC via fpc-pascal
 wrote:
> On Mon, 04 Oct 2021 04:36:32 -0400 Bo Berglund via fpc-pascal 
> wrote 
>
>
>>On Mon, 04 Oct 2021 10:28:38 +0200, Bo Berglund via fpc-pascal
> wrote:
>>
>>>I have tried to post to the list (via GMane) but it does not come through.
>>>And the last post made seems to be on 2021-10-01...
>>>Is the list itself down or is there a GMane problem?
>>
>>Seems to be GMane...
>>I repeated the posting via email instead and this appears in the GMane 
>>listing.
>>So their posting function seems to have broken for the lazarus list. :(
>

>I received the original posting and also the second direct attempt.
>
>Doug C.

Well, then there is something else going on at GMane...
I am using a newsreader to communicate with the mail list via GMane and on this
fpc list posts I make are shown after a little wait.

But on the lazarus list I post and I do not see my message at all in the list,
even now after so long time has passed.
But when I sent the same post via email to the list then it appeared almost
directly. And following that I have received replies to my emailed query on the
GMane server...
I wonder why it does not list the posts I make via GMane but does so for the
posts I email?
Note: it seems opnly to affect the lazarus list.

Anyway, it is not an fpc topic, I just posted here to get in touch with people
also on the lazarus list


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-04 Thread DougC via fpc-pascal
I received the original posting and also the second direct attempt.



Doug C.






 On Mon, 04 Oct 2021 04:36:32 -0400 Bo Berglund via fpc-pascal 
 wrote 


On Mon, 04 Oct 2021 10:28:38 +0200, Bo Berglund via fpc-pascal
 wrote:

>I have tried to post to the list (via GMane) but it does not come through.
>And the last post made seems to be on 2021-10-01...
>Is the list itself down or is there a GMane problem?

Seems to be GMane...
I repeated the posting via email instead and this appears in the GMane listing.
So their posting function seems to have broken for the lazarus list. :(


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  - mailto:fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-04 Thread Bo Berglund via fpc-pascal
On Mon, 04 Oct 2021 10:28:38 +0200, Bo Berglund via fpc-pascal
 wrote:

>I have tried to post to the list (via GMane) but it does not come through.
>And the last post made seems to be on 2021-10-01...
>Is the list itself down or is there a GMane problem?

Seems to be GMane...
I repeated the posting via email instead and this appears in the GMane listing.
So their posting function seems to have broken for the lazarus list. :(


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] Is the Lazarus list down? (2021-10-04)

2021-10-04 Thread Bo Berglund via fpc-pascal
I have tried to post to the list (via GMane) but it does not come through.
And the last post made seems to be on 2021-10-01...
Is the list itself down or is there a GMane problem?


-- 
Bo Berglund
Developer in Sweden

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal