Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-05-2016, 07:18   #1
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
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?
__________________
boat_alexandra is offline   Reply With Quote
Old 09-05-2016, 07:47   #2
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
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, 08:08   #3
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
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.
__________________
boat_alexandra is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 12 23-12-2013 10:29
opencpn background map rslotpole OpenCPN 3 01-11-2013 11:23
Interesting Tri in the background jeanathon Multihull Sailboats 4 09-10-2012 08:00



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 21:58.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.