[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtkmm
Subject:    Re: Pulse while IO operations...
From:       Kjell Ahlstedt <kjell.ahlstedt () bredband ! net>
Date:       2014-08-02 9:06:27
Message-ID: 53DCAA13.7080204 () bredband ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


If you want to avoid multithread programming, you can try a timeout:
https://developer.gnome.org/gtkmm-tutorial/stable/sec-timeouts.html.en

I'm not sure it works well during all kinds of IO operations. The calls 
to the slot you connect might be delayed too much, but it's worth 
trying. If it works, it's easier than multithreading.

Kjell

Den 2014-08-01 21:04, Ritesh Khadgaray skrev:
> Hi
>
>   You might want to look up - 
> https://developer.gnome.org/gtkmm-tutorial/3.9/sec-multithread-example.html.en 
> .
>
> Cheers
>
>
>
> On Wed, Jul 16, 2014 at 2:33 AM, Glus Xof <gtglus@gmail.com 
> <mailto:gtglus@gmail.com>> wrote:
>
>     Hi guys,
>
>     Is there any procedure a la Gtkmm to pulse periodically a
>     Gtk::Entry (I mean methods like progress_pulse()) while during the
>     IO operations.. and thus avoid eventually threads programming ?
>
>     Glus
>


[Attachment #5 (text/html)]

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    If you want to avoid multithread programming, you can try a timeout:<br>
<a class="moz-txt-link-freetext" \
href="https://developer.gnome.org/gtkmm-tutorial/stable/sec-timeouts.html.en">https://developer.gnome.org/gtkmm-tutorial/stable/sec-timeouts.html.en</a><br>
  <br>
    I'm not sure it works well during all kinds of IO operations. The
    calls to the slot you connect might be delayed too much, but it's
    worth trying. If it works, it's easier than multithreading.<br>
    <br>
    Kjell<br>
    <br>
    <div class="moz-cite-prefix">Den 2014-08-01 21:04, Ritesh Khadgaray
      skrev:<br>
    </div>
    <blockquote
cite="mid:CAHy4Ox34HWGGdadxDLcxi7rjPNfN-Gu+AWhbibdNnmWZNj=1TQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hi</div>
        <div><br>
        </div>
        <div>  You might want to look up - <a moz-do-not-send="true"
href="https://developer.gnome.org/gtkmm-tutorial/3.9/sec-multithread-example.html.en"> \
                https://developer.gnome.org/gtkmm-tutorial/3.9/sec-multithread-example.html.en</a>
                
          . </div>
        <div><br>
        </div>
        <div>Cheers</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Jul 16, 2014 at 2:33 AM, Glus
          Xof <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:gtglus@gmail.com" \
target="_blank">gtglus@gmail.com</a>&gt;</span>  wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>Hi guys,<br>
                  <br>
                </div>
                Is there any procedure a la Gtkmm to pulse periodically
                a Gtk::Entry (I mean methods like progress_pulse())
                while during the IO operations.. and thus avoid
                eventually threads programming ?<span class="HOEnZb"><font
                    color="#888888"><br>
                    <br>
                  </font></span></div>
              <span class="HOEnZb"><font color="#888888">Glus<br>
                </font></span></div>
            <br>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>



_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic