~ubuntu-branches/ubuntu/vivid/gnash/vivid-proposed

« back to all changes in this revision

Viewing changes to libbase/GnashSleep.h

  • Committer: Package Import Robot
  • Author(s): Gabriele Giacone
  • Date: 2012-06-30 02:35:32 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20120630023532-go61oics8o04jek1
Tags: 0.8.11~git20120629-1
* Git snapshot.
  + IPv6 support.
  + Fix FTBFS with gcc 4.7 and clang.
  + Fix opening of external URL with gnash standalone.
* Remove gstreamer0.10-fluendo-mp3 from runtime deps (Closes: #679527).
* Use sensible-browser instead of xdg-open (Closes: #597195).
* Set NoDiplay=true in desktop icons (Closes: #679573). 
* Switch source and binary to xz compression.
* Remove gcc4.7 and CVE-2012-1175 patches.
* Add hardening lintian overrides.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
/// Sleep compatibly for the specified number of microseconds
33
33
//
34
34
/// @param useconds     microseconds to sleep.
35
 
inline void gnashSleep(size_t useconds)
 
35
inline void gnashSleep(time_t useconds)
36
36
{
37
37
#if defined(_WIN32) || defined(WIN32)
38
38
    Sleep(useconds / 1000);
39
39
#else
40
 
    const size_t m = 1000000;
 
40
    const time_t m = 1000000;
41
41
    const struct timespec t = { useconds / m, (useconds % m) * 1000 };
42
42
    ::nanosleep(&t, 0);
43
43
#endif