Changeset 26360f7 in mainline for uspace/srv


Ignore:
Timestamp:
2009-06-12T19:44:25Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1806e5d
Parents:
9ae22ba
Message:

Use 'fibril_local' modifier for fibril-local variables instead of 'thread'. Since it is decalred in fibril.h, it need not begin with ''.

Location:
uspace/srv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fb/fb.c

    r9ae22ba r26360f7  
    5555#include <io/style.h>
    5656#include <async.h>
     57#include <fibril.h>
    5758#include <bool.h>
    5859
     
    10391040 * @return false if the call was not handled byt this function, true otherwise
    10401041 *
    1041  * Note: this function is not threads safe, you would have
    1042  * to redefine static variables with __thread
     1042 * Note: this function is not thread-safe, you would have
     1043 * to redefine static variables with fibril_local.
    10431044 *
    10441045 */
  • uspace/srv/vfs/vfs_file.c

    r9ae22ba r26360f7  
    4141#include <assert.h>
    4242#include <bool.h>
     43#include <fibril.h>
    4344#include <fibril_sync.h>
    4445#include "vfs.h"
     
    5960 * don't need to protect it by a futex.
    6061 */
    61 __thread vfs_file_t **files = NULL;
     62fibril_local vfs_file_t **files = NULL;
    6263
    6364/** Initialize the table of open files. */
Note: See TracChangeset for help on using the changeset viewer.