Re: Calling a C function with a timeout

"Guy K. Kloss" <[email protected]> Mon, 14 Mar 2011 11:39:07 +1300
Newsgroups gmane.comp.python.ctypes
Organization School of Computing + Mathematical Sciences
Message-ID <[email protected]>
On Thu, 10 Mar 2011 07:04:48 Chris Clark wrote:
> Michel Claveau wrote:
> > Je pense que, en passant par subprocess, ça irait mieux. En effet, on a 
> > terminate()  à disposition.
> 
> I concur, either use a subprocess (as suggested by Michel) which you can 
> then kill, or modify the C code to support a time out. This isn't 
> something you can deal with as you surrendered the stack to the 
> function, it is now in control until it returns.

Thanks for providing an English equivalent of the content for the rest of us. 
At least I'm hoping that this is what Michel was saying ...

Guy

-- 
Guy K. Kloss
School of Computing + Mathematical Sciences
Auckland University of Technology
Private Bag 92006, Auckland 1142
phone: +64 9 921 9999 ext. 5032
eMail: [email protected]

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d

_______________________________________________
ctypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ctypes-users
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk19R4wACgkQpsb+VXwam+T+MACfdV7jmvncgA0d2eXIMJa/EsFg
KoEAniugsUDiMVkEr2pAriCRfwukYMDB
=y0/C
-----END PGP SIGNATURE-----