Changeset 7cce333 in mainline for uspace/lib


Ignore:
Timestamp:
2019-08-07T10:22:06Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
5353f50
Parents:
a097c50
git-author:
Michal Koutný <xm.koutny+hos@…> (2015-11-10 21:19:03)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-08-07 10:22:06)
Message:

sysman: Refined semantics of IPC_FLAG_AUTOSTART

IPC_FLAG_AUTOSTART_ is for internal use in brokers (added underscore).
IPC_AUTOSTART is a flag macro (not a _single_ flag) to be used by clients.

Conflicts:

uspace/lib/c/generic/loc.c
uspace/lib/gui/window.c
uspace/srv/vfs/vfs_ops.c

Location:
uspace/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/loc.c

    ra097c50 r7cce333  
    329329        async_exch_t *exch;
    330330
    331         if ((flags & IPC_FLAG_BLOCKING) || flags & IPC_FLAG_AUTOSTART)
     331        if ((flags & IPC_FLAG_BLOCKING))
    332332                exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER);
    333333        else {
  • uspace/lib/c/include/ipc/common.h

    ra097c50 r7cce333  
    4343
    4444#define IPC_FLAG_BLOCKING   0x01
    45 // TODO autostart flag may be united with blocking, this should be later made
    46 //      implicit, documented or refactor pairs of xxx and xxx_blocking methods
    47 #define IPC_FLAG_AUTOSTART  0x02
     45
     46/**
     47 * IPC_FLAG_AUTOSTART_ is for use in brokers only. In clinet code use
     48 * IPC_AUTOSTART that includes implies blocking behavior. */
     49#define IPC_FLAG_AUTOSTART_  0x02
     50
     51/**
     52 * Similar to blocking IPC_FLAG_BLOCKING behavior, broker will attempt to
     53 * start the server.
     54 */
     55#define IPC_AUTOSTART (IPC_FLAG_BLOCKING | IPC_FLAG_AUTOSTART_)
    4856
    4957typedef ipc_data_t ipc_call_t;
  • uspace/lib/gui/window.c

    ra097c50 r7cce333  
    615615        win->focus = NULL;
    616616        win->surface = NULL;
    617 
    618         unsigned int ipc_flags = IPC_FLAG_AUTOSTART;
     617       
     618        unsigned int ipc_flags = IPC_AUTOSTART;
    619619        service_id_t reg_dsid;
    620620        errno_t rc = loc_service_get_id(winreg, &reg_dsid, ipc_flags);
Note: See TracChangeset for help on using the changeset viewer.