Re: Delete a list item from a separate thread safe?



Bruce. wrote:
That's bad news for how I was planning to impliment this. Essentially the
items will be added to the list in one thread (a thread in a exe calling
my dll) and time stamped.

I need to periodically scan the list in another thread (lives in the dll)
and "age" the entries, deleting old entries past a certain expiration
time.

I'd suggest a strategy where you check out an entry (list::splice()!) in a
critical section and then manipulate it accordingly and check it back in in
another critical section. Alternatively, you could trigger aging the
entries after finishing your work on each entry, I guess it's not critical
that it is done in a guaranteed time (equivalent to soft realtime instead
of hard realtime).

Uli

.



Relevant Pages

  • Re: Firefox and Sound
    ... number of loads that app performed. ... only references to entry points in the dll. ... specified entry points in it can't be found, ... but the download manager said it was only 78.8 MB. ...
    (comp.os.os2.apps)
  • Re: backdoor.afcore.bb HELL
    ... free Firewall.With secure dll authentication enabled,by ... >the classic malware, the other is a monitoring service ... using registry entries and MSCONFIG itself ...
    (microsoft.public.security)
  • Re: SAVE-SYSTEM and DLLs
    ... Win32Forth uses a system of pointing all Windows DLL calls on ... and calls the entry point for this time. ... IMP-RESOLVE is called first time through on a Windows call. ... Since my Forth uses EBP as a stack, the stacks are switched for a ...
    (comp.lang.forth)
  • Re: C coding guidelines
    ... /your/ code's entry point, then it isn't what we're talking about - ... but I'm talking specifically about Win32 GUI. ... The REAL entry point for a Win32 GUI program is WinMainCRTStartup. ... link with to produce the DLL. ...
    (comp.lang.c)
  • Re: C coding guidelines
    ... ALL dlls will be called BY THE LOADER before the program starts. ... This call will be done to a special entry point called DllMain ... For instance, in the dll you sent me, the header ...
    (comp.lang.c)