Pthread_cond_timedwait replacement for iOS (monotonic/mach time)

Hi,
I'm interested in a pthread_cond_timedwait replacement for iOS. On Android and Linux, the monotonic time could be chosen as a base time, however, on iOS, monotonic time (or mach time) is not supported for this function.
Is there any suitable replacement for pthread conditional variables with monotonic time support?
Thanks a lot.
Regards,
Michal

Have you considered using GCD? I am slowly and happily forgetting anything I ever knew about pthreads. I don't know about that function but GCD supports semaphores with nanosecond timeout precision.

Similar Messages

  • How to address a specific time in VOD for iOS

    Using Flash and RTMP it's easy to go to a specific time in a VOD stream served from AMS using the seek method.
    Is there similar ability to seek to a specific time in VOD delivered to Safari on iOS?  The native video player provides a currentTime method, but I've not seen documentation anywhere to suggest currentTime or another method to provide rapid and accurate time based access from AMS.
    FWIW, Wowza documentation provides an answer:
    http://www.wowza.com/forums/content.php?326-How-to-specify-a-play-start-time-and-duration- for-HTTP-streaming
    TIA,
    RT

    Nitin, the link you provided is a bit better than nothing, but it refers to the AVPlayer object in applications, rather than iOS delivered data.  In our experience currentTime is a settable property for the native video player in mobile Safari, using a normal progressive uploaded stream, as the documentation shows:
    http://developer.apple.com/library/safari/#documentation/AudioVideo/Reference/HTMLMediaEle mentClassReference/HTMLMediaElement/HTMLMediaElement.html
    The question is "Are there browser based methods that seek AMS delivered streams more quickly or with better accuracy?" 
    Everyone is aware that mobile is exploding.  On some of our videocentric apps the share for iOS is approaching 20%.  PM Kevin Towes, what are you doing to accomodate this need???

  • HT1212 my kid brother entered the wrong pin on my ipad and now it is disabled and i was told to connect tt itunes for restore but every time i do that it tells me to update the ios but i have downloaded the new ios 7 on my ipad 2 and i also have the soft

    my kid brother entered the wrong pin on my ipad and now it is disabled and i was told to connect tt itunes for restore but every time i do that it tells me to update the ios but i have downloaded the new ios 7 on my ipad 2 and i also have the soft copy  of the ios on my windows pc. please how can i reload my ipad

    Try using recovery mode
    Recovery mode - Support - Apple

  • How to record a time-limited video with Adobe AIR for iOS

    I am trying to record a time-limited video with Adobe AIR for iOS.
    For example, I want to implement the following function. Start a one-minute timer before launching CameraUI to record video. When the timeout event happens after one minute, stop recording video, close the CameraUI view and obtain the video data so far.
      I have several questions related to that.
      1. How to stop recording video from outside the CameraUI view(in this case, from the timeout event handler) and then close the CemeraUI view? As far as I know, to close the CameraUI view, the only way is to press the [Use Video] button or the [Cancel] button from inside the CameraUI view. Is it possible to close it from outside?
      2. Even if the first problem mentioned above is solved, then how can I get the video data so far(in this case, the video data before the timeout). I know that normally we can get a MediaPromise object from MediaEvent parameter of the  complete handler, and read the video data from the MediaPromise object. But obviously in this case, we can not access the MediaPromise object just because the complete handler itself will not be executed since the [Use Video] button is not pressed.
      3. Is it possible to add a stopwatch to show possible remaining recording time when CameraUI view is open? It seems that the CameraUI automatically uses the full screen of iOS device(in my case, iPad) and there is no extra space to show the stopwatch.
      Are there any solutions or workarounds about the three problem above? I really appreciate it if anyone has any idea about this. Thanks in advance.

    You'd have more control by using the Camera object, showing the camera on a video object inside a Sprite, and capturing that. Then you could put whatever graphics alongside it on the stage.. I've used FlashyWrappers in a test to capture the video to the library.  It took some work, but the test worked well...
    Flash/AIR record videos of your apps and games: Rainbow Creatures

  • IPhone 5s screen freezes for minutes at a time after iOS 8.0.2 install

    My previously perfect iphone 5s has just been updated to iOS 8.0.2 and now for minutes at a time  the touch screen doesn't work. The buttons do, but not the screen. It then comes back to life for a minute or two before it stops working again. Anything I can do? Thanx

    Hey there Shortos,
    It sounds like your phone touchscreen is not consistently working for you after updating to iOS 8. I can see how that would be pretty frustrating. It sounds to me like this could be a software issue or an issue with the screen itself. I would start with the troubleshooting in the following article to help troubleshoot the screen itself:
    iPhone, iPad, iPod touch: Troubleshooting touchscreen response
    Restart your device
    Hold the On/Off button until "slide to power off" appears. Slide to power off your device. When it is off, press the On/Off button to turn it back on.
    If you can't restart your device, reset it by pressing and holding the Sleep/Wake button and the Home button at the same time for a least ten seconds, until the Apple logo appears.
    Clean the screen with a soft, slightly damp, lint-free cloth.
    Avoid using the device while wearing gloves, with wet hands, or immediately after applying hand lotion.
    If you have a protective case, or if you are using a plastic sheet or film on the display, try removing them and testing the device without it.
    If that does not resolve the issue, I would next quit all the running apps on the device:
    iOS: Force an app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the device and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • My wife's new iphone4 (a replacement for a 5 month-old iphone 4 with home button issues) is not recognized by itunes. Every other ios device in the house using that computer and Apple ID is. Any suggestions?

    My wife's brand new iphone4 (which was a replacement for a 4month-old iphone4 with home button issues) is not recognized by itunes. Every other ios device on  the computer/Apple ID in question is recognized and syncs perfectly. Any suggestions?

    If the new phone has already been setup, make sure the phone and iTunes are both set to the same account.
    You might also have to authorize this computer for the new device under the store menu.

  • Time stamp from DV capture -- replacement for dvdate?

    In CS3, there is a plugin dvdate that can extract the date/time from captured DV avi file and overlay this information.
    In CS4, this plugin no longer works (crash) and author simply said it does not work.
    Is there any replacement for dvdate?  Or CS4 now supports it natively?
    Thanks!

    I don't really understand why Adobe has to break such a basic function in CS4.
    Does DVMP work with Premiere?  It does not look like a plugin.  There is a feature to fix start timecode.  However, the Premiere CS4 Timecode effect only shows time, not date.  So it does not seem to be an easy workaround.

  • I made upgrade for IOS to 7.04 but my iphone is second hand and when iphone need to make activation ,i don't have the apple ID so my iphone didn't work from this time so please help me urgent

    I made upgrade for IOS to 7.04 but my iphone is second hand and when iphone need to make activation ,i don't have the apple ID so my iphone didn't work from this time so please help me urgent.

    There isn't one.
    amrzaky wrote:
    I can't contact with previous owner s i need another solutoin
    The Apple ID and Password that was Originally used to Activate the iDevice is required.
    If you cannot get this information from the seller
    Removing a device from a previous owner’s account
    You need to return the Device for a refund, as you will not be able to re-activate it.

  • Is there a free one time replacement for accidental broke screen on iPad 2?

    Is there a one-time replacement for accidentally broken iPad 2 screen.

    I tried on my less than month old iPad2 64gb.
    I had to make 2 trips (one to schedule appt and one for the "Genius" appointment) for what I knew would be the answer ($349) so kind of frustrating experience -- especially listening to the litany of other relatively mundane problems people were having.  Then made a 3rd appointment to see if the meltdown another custormer next to me was having affected my review with Genius #1.  Same result.  Hard to justify over $1k investment in less than a month.  Genius #2 agreed and suggested to use a screen cover laminate and await next version.
    I did not drop mine -- but it fell over face first while using the smart cover as a stand.  Of course it fell on a granite counter top but the glass shattered/cracked (yet stayed in place).  Still works so using the cellophane envelope to keep glass shards from cutting me.  Looks quite stupid in public.
    Overall not a pleasant experience.  Wasn't expecting a free replacement -- but also not expecting the 2 trips, seemingly discretionary ad hoc Genius review, long wait and the absence of a simple screen replacement/cheaper option.

  • My Iphone 5 doesn't sync most of the time. First time I brought it to Apple Store they replaced the cable. Second time, was there for 4 hours no joke and still does the issue. Today, same thing. What do I do now!? :(

    First time I brought it to Apple Store they replaced the cable. Second time, was there for 4 hours no joke and still does the issue. Today, same thing. What do I do now!?

    Got it replaced last week. Turns out the dock was defective.

  • Workers for iOS any time soon?

    Quick question for the AIR dev team.
    Will Workers for iOS be a priority for AIR 18 beta, or are there any concrete plans for iOS workers?
    i've been longing for this feature for quite some time now, it kind of sucks to have to maintain 2 versions of my code to support both Android and iOS.

    install os x in virtual machine on windows machine. and make config from there. worked for me!
    I think apple is not making the update on purpose.

  • HT1665 hi, i have an iPhone 5 and have had to replace the charger cable 3 times, its cost me a small fortune! i paid for applecare + for it, am i covered?

    hi, i have an iPhone 5 and have had to replace the charger cable 3 times, its cost me a small fortune! i paid for applecare + for it, am i covered?

    Basic troubleshooting steps clearly outlined in the User Guide are restart, reset, restore from backup, restore as NEW.
    If the basic troubleshooting steps don't work, then you'll need to bring your phone into Apple for evaluation and probable replacement.

  • Replacement for Time Capsule

    I have a two year old 500 GB Time Capsule that I use for Time Machine backups for an iMac and a MacBook.  It's about 90% full and I am concerned that the power supply may die as it did on my original TC that worked for 18 months and died.  Solutions that I am considering include: 1. Replace it with a new 1T Time Capsule or 2. Replace it with an AirPort Extreme and an external HD connected to the iMac for backups of both computers.  The costs for both options are about the same.  Option 1 is more convenient. Option 2 makes me feel more secure about data loss in the event that the router has power supply problems. Any thoughts?

    Pondini wrote:
    NJ Analyst wrote:
    I replaced my 1st. Gen Time Capsule with a 5th Gen. AirPort Extreme and a 1 TB Iomega FW external HD. I now backup the iMac directly to the AirPort Extreme w/FW800
    That's a good trick, since an Airport Extreme does not have a FireWire port.  
    If you mean the F/W drive is connected directly to your iMac, yes, that's about the fastest, most reliable way to back up.
    Sorry for that.  You are correct.  I meant to say that I back up my iMac directly to the Iomega HD by FW.

  • HT4059 Why am I asked for my password each time I open iBook?  Started a week or two ago. 4th gen iPad with iOS 6.1.3. And iBooks 3.1.

    Why am I asked for my password each time I open iBook?  Started a week or two ago. 4th gen iPad with iOS 6.1.3. And iBooks 3.1.

    Take it back to Best Buy and talk to the store manager. Possibly they can work something out with Apple.
    In the meantime, try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • I want to replace a four year old Time Capsule for a new Airport Extreme, how difficult is it?

    I want to replace a four year old Time Capsule for a new Airport Extreme, how difficult is it? The ADSL connection come from a Modern Router provide by the local Telephone company.

    Reply back when you get the new device, but in short, you'll have to put your extreme in bridge mode and just connect the same wires as your current TC.
    See here http://www.macobserver.com/tmo/answers/how-to-add-a-time-capsule-or-airport-extr eme-to-an-existing-network-with-br

Maybe you are looking for

  • Importing Dashboard report in BI Publisher

    Hi, I have two questions hope someone can assist me please. I've never used BI Publisher before only the Dashboard. I have created a bunch of reports in BI Dashboard. I would like to put them in BI Publisher report. Is it possible to do that? Also, i

  • Purchase order number in VA05 transaction

    Hi, When i excute VA05 transaction by  giving sales orginization number by selecting orginational data tab in initial screen the purchase order number is balnk ,but when i give sales document type in further selection criteria the purchase order numb

  • How do I select a line in preview

    I open an image in Preview and select Annotate. I can add text to the image, and a line/arrow. But once the line is created, I can't select it.

  • Settings/icons/more not persisting through restart

    I just recently installed ML and on every restart, my dock goes back to what it was on Lion and all my settings revert to what they were on lion. Nothing I change stays through a restart. More examples after restart: ical and address book return as ?

  • Iphoto 6 Import Problem

    Howdy All, Every time I import a set of photos into Iphoto, the import function locks up at the end of the import, thus requiring me to force quit the program (when I just simply try to quit, i get a window telling me the import process is still goin