Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Style nits; fixed a minor typo in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbking committed Jul 13, 2014
1 parent 6ecb620 commit d80e0e4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/core/sys/solaris/sys/priocntl.d
Expand Up @@ -87,7 +87,8 @@ enum PC_VAPARMCNT = 8; // max # of kv pairs
enum PC_KY_NULL = 0; // kv chain terminator
enum PC_KY_CLNAME = 1; // get the class name of a process or LWP

struct pc_vaparm_t {
struct pc_vaparm_t
{
int pc_key;
ulong pc_parm;
}
Expand Down
6 changes: 4 additions & 2 deletions src/core/sys/solaris/sys/procset.d
Expand Up @@ -25,14 +25,16 @@ enum P_INITPID = 1;
enum P_INITUID = 0;
enum P_INITPGID = 0;

enum idop_t {
enum idop_t
{
POP_DIFF,
POP_AND,
POP_OR,
POP_XOR
}

struct procset_t {
struct procset_t
{
idop_t p_op;
idtype_t p_lidtype;
id_t p_lid;
Expand Down
3 changes: 1 addition & 2 deletions src/core/thread.d
Expand Up @@ -980,8 +980,7 @@ class Thread
clparms[1] = cast(pri_t) val;

if (priocntl(idtype_t.P_LWPID, P_MYID, PC_SETPARMS, &pcparm) == -1)
throw new ThreadException( "Unable to set schedulign class" );

throw new ThreadException( "Unable to set scheduling class" );
}
else version( Posix )
{
Expand Down

0 comments on commit d80e0e4

Please sign in to comment.