Openmoko Bug #1549: [exposure] want to launch exposure again while it is in the e-illume bar, need 5~10 sec

Openmoko Public Trac bugs at docs.openmoko.org
Tue Jul 22 20:16:51 CEST 2008


#1549: [exposure] want to launch exposure again while it is in the e-illume bar,
need 5~10 sec
------------------------+---------------------------------------------------
 Reporter:  wendy_hung  |        Owner:  marek   
     Type:  defect      |       Status:  assigned
 Priority:  normal      |    Milestone:  ASU     
Component:  E - Illume  |      Version:          
 Severity:  normal      |   Resolution:          
 Keywords:  must have   |     Blocking:          
Blockedby:              |  
------------------------+---------------------------------------------------

Comment(by raster):

 1. its an onmousedown that starts the green animation, but it is a mouse
 UP that ends the action. as between the mouse down and up you may or may
 not drag - the whole action may become either a click (a down then up with
 minimal movement) OR it becomes a drag (at which point it should not
 activate the selected item). same thing as in the etk scrolledview before
 - e has this and it has tuning parameters to determine what is a drag and
 what is just a regular click+release. thus why i suggest you play with the
 settings :)

 2. aaah you set your own signal handler. and i guess you call activate()
 from the signal handler? bad! signal handlers are just as bad as threads.
 they can interrupt anything - preemptively and when they return do nothing
 special. so the same explanation for threads not working above counts for
 signal handlers. in fact signal handles should do almost nothing - or as
 little as possible. don't use a signal handler, OR use ecore's signal
 handler wrappers (that convert signals to events). they were created for
 just this reason - that signal handlers are unreliable to use for any
 serious work, but if you just use them as signallers and then from there
 add events into an event queue - and process the event queue in the main
 loop as normal... it works fine.

 so... you need some way of doing this without threads or signal handlers
 (or sysv ipc... i could start to think of other messaging/signalling
 systems you also dont want to use). you want a socket or a fd/pipe or
 something else.

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1549#comment:12>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list