Changeset 339dfc5 in mainline
- Timestamp:
- 2011-01-08T21:36:15Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa581b3
- Parents:
- e08a733
- git-author:
- Vojtech Horky <> (2011-01-08 21:36:15)
- git-committer:
- Jakub Jermar <jakub@…> (2011-01-08 21:36:15)
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async_sess.c
re08a733 r339dfc5 154 154 { 155 155 sess->sess_phone = phone; 156 sess->connect_arg1 = 0; 156 157 list_initialize(&sess->conn_head); 157 158 … … 159 160 fibril_mutex_lock(&async_sess_mutex); 160 161 list_append(&sess->sess_link, &session_list_head); 162 fibril_mutex_unlock(&async_sess_mutex); 163 } 164 165 void async_session_set_connect_args(async_sess_t *sess, sysarg_t arg1) 166 { 167 fibril_mutex_lock(&async_sess_mutex); 168 sess->connect_arg1 = arg1; 161 169 fibril_mutex_unlock(&async_sess_mutex); 162 170 } … … 231 239 */ 232 240 retry: 233 data_phone = async_connect_me_to(sess->sess_phone, 0, 0, 0); 241 data_phone = async_connect_me_to(sess->sess_phone, 242 sess->connect_arg1, 0, 0); 234 243 if (data_phone >= 0) { 235 244 /* success, do nothing */ -
uspace/lib/c/include/async_sess.h
re08a733 r339dfc5 40 40 typedef struct { 41 41 int sess_phone; /**< Phone for cloning off the connections. */ 42 sysarg_t connect_arg1; /**< Argument for CONNECT_ME_TO. */ 42 43 link_t conn_head; /**< List of open data connections. */ 43 44 link_t sess_link; /**< Link in global list of open sessions. */ … … 46 47 extern void _async_sess_init(void); 47 48 extern void async_session_create(async_sess_t *, int); 49 extern void async_session_set_connect_args(async_sess_t *, sysarg_t); 48 50 extern void async_session_destroy(async_sess_t *); 49 51 extern int async_exchange_begin(async_sess_t *);
Note:
See TracChangeset
for help on using the changeset viewer.