Professional Web Applications Themes

CFString interrupt safe? - Mac Programming

Can the CFString functions be called from a Time Manager interrupt task (Carbon CFM)? TN1104 does not mention anything about the Core Foundation, but it seems to predate all the Core Foundation doentation. -=-=-=-=-...

  1. #1

    Default CFString interrupt safe?

    Can the CFString functions be called from a Time Manager interrupt task
    (Carbon CFM)? TN1104 does not mention anything about the Core
    Foundation, but it seems to predate all the Core Foundation
    doentation.


    -=-=-=-=-
    Carl Guest

  2. #2

    Default Re: CFString interrupt safe?

    In article <010220041353429736%com>,
    "Carl R. Osterwald" <com> wrote:
     

    I don't think Time Manager tasks and similar stuff that used to run at
    interrupt time do that anymore on MacOS X. IIRC they've all been moved
    into separate threads. So I guess you need to rephrase your question.
    Look whether they're doented as being thread-safe.

    I'm sure this is true for the Speech Manager, at least. But I haven't
    really used Time Manager tasks yet, so I can't say that for sure.

    Cheers,
    -- M. Uli Kusterer
    Uli Guest

  3. #3

    Default Re: CFString interrupt safe?

    On Tue, 3 Feb 2004, Uli Kusterer wrote:
     
    >
    > I don't think Time Manager tasks and similar stuff that used to run at
    > interrupt time do that anymore on MacOS X. IIRC they've all been moved
    > into separate threads. So I guess you need to rephrase your question.
    > Look whether they're doented as being thread-safe.
    >
    > I'm sure this is true for the Speech Manager, at least. But I haven't
    > really used Time Manager tasks yet, so I can't say that for sure.
    >[/ref]

    http://developer.apple.com/carbon/tipsandtricks.html#InterruptTime
    basically says that interrupt time does not exist in the sense that it
    existed in OS 9. CoreFoundation objects are basically thread safe
    (although apple cannot protect you from everything, eg if you want to
    convert to a c string and allocate a buffer based on the value of
    CFStringGetLength, then the string may have changed by the time you
    actually call CFStringGetCString).


    Fred

    Frederick Guest

  4. #4

    Default Re: CFString interrupt safe?

    In article
    <srcf.societies.cam.ac.uk>,
    Frederick Cheung <DUH.ucam.org> wrote:
     
    > >
    > > I don't think Time Manager tasks and similar stuff that used to run at
    > > interrupt time do that anymore on MacOS X. IIRC they've all been moved
    > > into separate threads. So I guess you need to rephrase your question.
    > > Look whether they're doented as being thread-safe.
    > >
    > > I'm sure this is true for the Speech Manager, at least. But I haven't
    > > really used Time Manager tasks yet, so I can't say that for sure.
    > >[/ref]
    >
    > http://developer.apple.com/carbon/tipsandtricks.html#InterruptTime
    > basically says that interrupt time does not exist in the sense that it
    > existed in OS 9. CoreFoundation objects are basically thread safe
    > (although apple cannot protect you from everything, eg if you want to
    > convert to a c string and allocate a buffer based on the value of
    > CFStringGetLength, then the string may have changed by the time you
    > actually call CFStringGetCString).[/ref]

    Thanks, both of these help. I'll go ahead and try it, if only to see
    what happens.


    -=-=-=-=-
    Carl Guest

Similar Threads

  1. sio clock interrupt problem
    By Richard Jones in forum FreeBSD
    Replies: 0
    Last Post: February 22nd, 01:13 PM
  2. sending interrupt
    By Ramprasad A Padmanabhan in forum PERL Beginners
    Replies: 2
    Last Post: September 4th, 02:54 AM
  3. How to get interrupt from the parallell port
    By Lars in forum Sun Solaris
    Replies: 2
    Last Post: August 13th, 07:43 PM
  4. $SAFE = 5 and Safe Ruby Misleading?
    By kirindave@lensmen.net in forum Ruby
    Replies: 9
    Last Post: August 13th, 03:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139