Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 09-05-2016, 06:18   #1
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Wink progress bars in the background

Is there any reason we shouldn't make opencpn always non-blocking, so that operations that take time simply operate in the background with a small progress bar rendered at the bottom with also a cancel option?

I think this would be useful for updating chart databases, parsing ENC files, merging/simplifying tracks and various plugin operations etc... Is there any real problem here?
seandepagnier is offline   Reply With Quote
Old 09-05-2016, 06:47   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,395
Re: progress bars in the background

Sean....

Welcome back. Hope you had a good passage.

I see no real problem in converting blocking operations to threads. It is just a matter of synchronization where necessary. Many of our classes/methods are not reentrant (global variables), nor thread-safe(wxWidgets message queue). So they need to be considered one-by-one.

Dave
bdbcat is offline   Reply With Quote
Old 09-05-2016, 07:08   #3
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: progress bars in the background

Another one is loading nav objects.

I think in most (or all cases) we don't need to write to global variables in the cpu intensive operations performed in the threads.
seandepagnier is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Background Colour seaeagle4444 OpenCPN 13 16-07-2023 07:44
opencpn background map rslotpole OpenCPN 3 01-11-2013 10:23
Interesting Tri in the background jeanathon Multihull Sailboats 4 09-10-2012 07:00

Advertise Here


All times are GMT -7. The time now is 04:28.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.