Changeset 26360f7 in mainline
- Timestamp:
- 2009-06-12T19:44:25Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1806e5d
- Parents:
- 9ae22ba
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/arm32/include/tls.h
r9ae22ba r26360f7 41 41 #define CONFIG_TLS_VARIANT_1 42 42 43 /** Offsets for accessing __threadvariables are shifted 8 bytes higher. */43 /** Offsets for accessing thread-local variables are shifted 8 bytes higher. */ 44 44 #define ARM_TP_OFFSET (-8) 45 45 -
uspace/lib/libc/generic/async.c
r9ae22ba r26360f7 175 175 176 176 /** Identifier of the incoming connection handled by the current fibril. */ 177 __threadconnection_t *FIBRIL_connection;177 fibril_local connection_t *FIBRIL_connection; 178 178 179 179 static void default_client_connection(ipc_callid_t callid, ipc_call_t *call); -
uspace/lib/libc/generic/fibril.c
r9ae22ba r26360f7 65 65 /** Number of threads that are executing a manager fibril and are serialized. */ 66 66 static int serialized_threads; /* Protected by async_futex */ 67 /** Thread-local count of serialization. If > 0, we must not preempt */68 static __threadint serialization_count;67 /** Fibril-local count of serialization. If > 0, we must not preempt */ 68 static fibril_local int serialization_count; 69 69 70 70 /** Setup fibril information into TCB structure */ -
uspace/lib/libc/include/fibril.h
r9ae22ba r26360f7 73 73 typedef struct fibril fibril_t; 74 74 75 /** Fibril-local variable specifier */ 76 #define fibril_local __thread 77 75 78 extern int context_save(context_t *c); 76 79 extern void context_restore(context_t *c) __attribute__ ((noreturn)); -
uspace/srv/fb/fb.c
r9ae22ba r26360f7 55 55 #include <io/style.h> 56 56 #include <async.h> 57 #include <fibril.h> 57 58 #include <bool.h> 58 59 … … 1039 1040 * @return false if the call was not handled byt this function, true otherwise 1040 1041 * 1041 * Note: this function is not thread ssafe, you would have1042 * to redefine static variables with __thread1042 * Note: this function is not thread-safe, you would have 1043 * to redefine static variables with fibril_local. 1043 1044 * 1044 1045 */ -
uspace/srv/vfs/vfs_file.c
r9ae22ba r26360f7 41 41 #include <assert.h> 42 42 #include <bool.h> 43 #include <fibril.h> 43 44 #include <fibril_sync.h> 44 45 #include "vfs.h" … … 59 60 * don't need to protect it by a futex. 60 61 */ 61 __threadvfs_file_t **files = NULL;62 fibril_local vfs_file_t **files = NULL; 62 63 63 64 /** Initialize the table of open files. */
Note:
See TracChangeset
for help on using the changeset viewer.