FLTK logo

Re: [fltk.bugs] [LOW] STR #1536: a thread-related helper

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [LOW] STR #1536: a thread-related helper Yuri D'Elia Feb 12, 2007  
 
In article <5405-fltk.bugs-+FT6Wyec2gCDR8wcTNDzOQ@public.gmane.org>,
 Michael Sweet <mike-B9D8k9nSxTHQT0dZR+AlfA@public.gmane.org> wrote:

> Yes, we can revisit this for FLTK 2, at least from the standpoint of
> changing the awake() function to return a boolean, and perhaps for
> extending this to a true RPC (rather than IPC) mechanism.  However,
> like I've said before I'm not keen on adding a complex, guaranteed
> delivery system unless you can show it can be generally useful to
> a broad range of multi-threaded apps.

I don't want anything complex either. In fact, I would prefer either to: 

- change awake() to not accept any message at all and remove 
thread_message/set_awake_cb() so that awake() is just a way to awake the 
main thread;
- change the current semantics in a way that allows the system queue to 
be guaranteed

(if we have a system queue, let's take the best out of it or not expose 
it at all).

On top of that, support a minimalist RPC, so that Fl::lock/unlock become 
totally unnecessary (less functions exposed, less internal complexity, 
less side cases for the application).

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.